Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001427/0.001427, allocations: 122.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0017/0.0017, allocations: 197.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.405/1.405, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001318, allocations: 63.89 kB / 358.3 MB, free: 13.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2768/0.2782, allocations: 50.55 MB / 408.8 MB, free: 1.504 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase): time 0.02582/0.304, allocations: 25 MB / 433.8 MB, free: 8.395 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0152/0.3193, allocations: 6.903 MB / 440.7 MB, free: 1.473 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005718/0.325, allocations: 171.4 kB / 440.9 MB, free: 1.305 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004982/0.3301, allocations: 1.646 MB / 442.5 MB, free: 15.64 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007857/0.338, allocations: 2.205 MB / 444.7 MB, free: 13.43 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004626/0.3426, allocations: 1.495 MB / 446.2 MB, free: 11.94 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01208/0.3547, allocations: 8.151 MB / 454.4 MB, free: 3.762 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01261/0.3673, allocations: 7.304 MB / 461.7 MB, free: 12.36 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006978/0.3744, allocations: 3.867 MB / 465.5 MB, free: 8.484 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008221/0.3826, allocations: 4.691 MB / 470.2 MB, free: 3.777 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003322/0.386, allocations: 1.094 MB / 471.3 MB, free: 2.684 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00468/0.3907, allocations: 1.324 MB / 472.7 MB, free: 1.359 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004323/0.395, allocations: 2.439 MB / 475.1 MB, free: 14.91 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009771/0.4048, allocations: 4.54 MB / 479.6 MB, free: 10.36 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02149/0.4263, allocations: 14.3 MB / 493.9 MB, free: 12 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.4264, allocations: 0 / 493.9 MB, free: 12 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.4264, allocations: 0 / 493.9 MB, free: 12 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005172/0.4269, allocations: 0 / 493.9 MB, free: 12 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1854 * Number of variables: 1854 Notification: Performance of Generate backend data structure: time 0.03277/0.4597, allocations: 9.081 MB / 0.4912 GB, free: 2.816 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.465e-05/0.4598, allocations: 8.031 kB / 0.4912 GB, free: 2.809 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003657/0.4634, allocations: 0.955 MB / 0.4922 GB, free: 1.84 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01079/0.4743, allocations: 1.706 MB / 0.4938 GB, free: 132 kB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01391/0.4882, allocations: 4.895 MB / 0.4986 GB, free: 11.16 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005755/0.4888, allocations: 0.5141 MB / 0.4991 GB, free: 10.64 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002728/0.4916, allocations: 0.6834 MB / 0.4998 GB, free: 9.961 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02605/0.5176, allocations: 9.451 MB / 0.509 GB, free: 456 kB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003243/0.518, allocations: 7.953 kB / 0.509 GB, free: 448 kB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001992/0.52, allocations: 292 kB / 0.5093 GB, free: 156 kB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004227/0.5205, allocations: 330.2 kB / 0.5096 GB, free: 15.82 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01966/0.5401, allocations: 8.078 MB / 0.5175 GB, free: 7.734 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3132/0.8534, allocations: 28.67 MB / 0.5455 GB, free: 104.9 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01277/0.8662, allocations: 17.74 MB / 0.5628 GB, free: 90.96 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0064/0.8726, allocations: 3.669 MB / 0.5664 GB, free: 90.32 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01332/0.886, allocations: 8.901 MB / 0.5751 GB, free: 85.56 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.752e-05/0.8861, allocations: 67.53 kB / 0.5752 GB, free: 85.5 MB / 462.1 MB Notification: Performance of pre-optimization done (n=259): time 3.988e-06/0.8861, allocations: 0 / 0.5752 GB, free: 85.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=265): time 0.02136/0.9075, allocations: 11.8 MB / 0.5867 GB, free: 78.7 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.476e-05/0.9075, allocations: 77.78 kB / 0.5868 GB, free: 78.64 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004857/0.9124, allocations: 3.412 MB / 0.5901 GB, free: 76.04 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002006/0.9126, allocations: 69.7 kB / 0.5902 GB, free: 75.96 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001943/0.9146, allocations: 3.146 MB / 0.5932 GB, free: 73.2 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006402/0.9152, allocations: 0.9628 MB / 0.5942 GB, free: 72.25 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008808/0.9161, allocations: 0.5976 MB / 0.5947 GB, free: 71.64 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 6.009e-05/0.9162, allocations: 305.1 kB / 0.595 GB, free: 71.34 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001969/0.9182, allocations: 1.447 MB / 0.5965 GB, free: 69.89 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002318/0.9205, allocations: 2.481 MB / 0.5989 GB, free: 66.96 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00434/0.9248, allocations: 4.195 MB / 0.603 GB, free: 62.28 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.381e-05/0.9249, allocations: 8 kB / 0.603 GB, free: 62.27 MB / 462.1 MB Notification: Performance of matching and sorting (n=436) (initialization): time 0.006874/0.9317, allocations: 5.043 MB / 0.6079 GB, free: 57.15 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.697e-05/0.9318, allocations: 20.94 kB / 0.6079 GB, free: 57.13 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.052e-05/0.9319, allocations: 32 kB / 0.608 GB, free: 57.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001204/0.9331, allocations: 0.5661 MB / 0.6085 GB, free: 56.52 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002546/0.9356, allocations: 0.7839 MB / 0.6093 GB, free: 55.73 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006838/0.9425, allocations: 9.46 MB / 0.6185 GB, free: 45.72 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003147/0.9456, allocations: 163.8 kB / 0.6187 GB, free: 45.56 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002209/0.9459, allocations: 148 kB / 0.6188 GB, free: 45.41 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 146 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (406): * Single equations (assignments): 400 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (1,8,100.0%), (1,1,100.0%), (3,16,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00328/0.9492, allocations: 2.078 MB / 0.6208 GB, free: 43.32 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006833/0.9499, allocations: 389.6 kB / 0.6212 GB, free: 42.94 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006301/0.9562, allocations: 4.549 MB / 0.6257 GB, free: 38.28 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.51e-05/0.9562, allocations: 28 kB / 0.6257 GB, free: 38.25 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.385e-05/0.9562, allocations: 12 kB / 0.6257 GB, free: 38.24 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-05/0.9562, allocations: 15.95 kB / 0.6257 GB, free: 38.22 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01407/0.9703, allocations: 10.36 MB / 0.6358 GB, free: 27.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.829e-06/0.9704, allocations: 4 kB / 0.6358 GB, free: 27.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00162/0.972, allocations: 399.5 kB / 0.6362 GB, free: 27.31 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002207/0.9742, allocations: 1.036 MB / 0.6372 GB, free: 26.25 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001527/0.9744, allocations: 71.97 kB / 0.6373 GB, free: 26.18 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0144/0.9888, allocations: 18.84 MB / 0.6557 GB, free: 6.383 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/0.9888, allocations: 8.031 kB / 0.6557 GB, free: 6.375 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009003/0.9978, allocations: 6.465 MB / 0.662 GB, free: 15.71 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002641/1, allocations: 0.7756 MB / 0.6628 GB, free: 14.91 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008164/1.001, allocations: 67.98 kB / 0.6628 GB, free: 14.84 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001727/1.003, allocations: 131.9 kB / 0.663 GB, free: 14.71 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004978/1.004, allocations: 193.7 kB / 0.6631 GB, free: 14.52 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001645/1.004, allocations: 79.98 kB / 0.6632 GB, free: 14.45 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003857/1.008, allocations: 2.315 MB / 0.6655 GB, free: 12.14 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.11e-07/1.008, allocations: 0 / 0.6655 GB, free: 12.14 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004459/1.012, allocations: 1.164 MB / 0.6666 GB, free: 10.98 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 14 (smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smr3.inertiaRotor.w,smr3.stator.core.Phi.re,smr3.stator.core.Phi.im,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController3.x,vfControllerM.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (195): * Single equations (assignments): 188 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,8,100.0%), (4,33,93.8%), (1,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,12,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01089/1.023, allocations: 7.124 MB / 0.6736 GB, free: 3.645 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006896/1.03, allocations: 4.299 MB / 0.6778 GB, free: 15.23 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.228e-06/1.03, allocations: 4 kB / 0.6778 GB, free: 15.23 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004604/1.035, allocations: 2.961 MB / 0.6807 GB, free: 12.17 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004847/1.039, allocations: 1.022 MB / 0.6817 GB, free: 11.16 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06675/1.106, allocations: 40.13 MB / 0.7209 GB, free: 1.672 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004559/1.111, allocations: 4.241 MB / 0.725 GB, free: 13.41 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.002937/1.114, allocations: 0.8328 MB / 0.7258 GB, free: 12.57 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00336/1.117, allocations: 2.553 MB / 0.7283 GB, free: 10.01 MB / 0.5294 GB Notification: Performance of SimCode: time 8.51e-07/1.117, allocations: 0 / 0.7283 GB, free: 10.01 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4071/1.524, allocations: 101.1 MB / 0.827 GB, free: 111.5 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.4/18.92, allocations: 2.188 kB / 0.827 GB, free: 111.5 MB / 0.5294 GB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/ComparisonPolyphase/SMR_Inverter_Polyphase/SMR_Inverter_Polyphase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches