Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009241/0.0009242, allocations: 196.4 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.195/1.195, allocations: 226.5 MB / 244.7 MB, free: 8.23 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008564/0.0008565, allocations: 89.28 kB / 296.7 MB, free: 6.918 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002055/0.0002056, allocations: 8 kB / 356.9 MB, free: 10.81 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1734/0.1736, allocations: 51.29 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.01216/0.1858, allocations: 18.46 MB / 426.6 MB, free: 9.176 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008301/0.1941, allocations: 5.757 MB / 432.4 MB, free: 3.422 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002783/0.197, allocations: 123.4 kB / 432.5 MB, free: 3.301 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002388/0.1994, allocations: 1.009 MB / 433.5 MB, free: 2.285 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003777/0.2031, allocations: 1.585 MB / 435.1 MB, free: 0.6914 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001907/0.2051, allocations: 0.8553 MB / 435.9 MB, free: 15.84 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.006482/0.2116, allocations: 6.299 MB / 442.2 MB, free: 9.512 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005046/0.2166, allocations: 4.523 MB / 446.8 MB, free: 4.902 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002612/0.2193, allocations: 1.996 MB / 448.8 MB, free: 2.898 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003059/0.2223, allocations: 2.657 MB / 451.4 MB, free: 236 kB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005759/0.2229, allocations: 320 kB / 451.7 MB, free: 15.91 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001485/0.2244, allocations: 0.6284 MB / 452.4 MB, free: 15.29 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00115/0.2256, allocations: 1.37 MB / 453.7 MB, free: 13.91 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0026/0.2282, allocations: 2.645 MB / 456.4 MB, free: 11.25 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006832/0.235, allocations: 8.411 MB / 464.8 MB, free: 2.812 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.235, allocations: 0 / 464.8 MB, free: 2.812 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.2351, allocations: 4 kB / 464.8 MB, free: 2.809 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001715/0.2352, allocations: 4 kB / 464.8 MB, free: 2.805 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.01179/0.247, allocations: 5.564 MB / 470.4 MB, free: 13.16 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.026e-05/0.2471, allocations: 8.031 kB / 470.4 MB, free: 13.15 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001178/0.2483, allocations: 0.7039 MB / 471.1 MB, free: 12.44 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004102/0.2524, allocations: 1.017 MB / 472.1 MB, free: 11.41 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005626/0.258, allocations: 3.454 MB / 475.5 MB, free: 7.883 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003037/0.2583, allocations: 398.6 kB / 475.9 MB, free: 7.492 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007572/0.2591, allocations: 0.5037 MB / 476.4 MB, free: 6.988 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01149/0.2706, allocations: 6.747 MB / 483.2 MB, free: 176 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001067/0.2707, allocations: 15.83 kB / 483.2 MB, free: 160 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004464/0.2712, allocations: 212 kB / 483.4 MB, free: 15.95 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002044/0.2714, allocations: 238.2 kB / 483.6 MB, free: 15.71 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009559/0.281, allocations: 5.748 MB / 489.4 MB, free: 9.957 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02996/0.311, allocations: 21.3 MB / 0.4987 GB, free: 4.141 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.155/0.466, allocations: 8.811 MB / 0.5073 GB, free: 79.1 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003661/0.4697, allocations: 2.234 MB / 0.5095 GB, free: 79.03 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008484/0.4782, allocations: 6.233 MB / 0.5156 GB, free: 75.9 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.579e-05/0.4782, allocations: 56.47 kB / 0.5156 GB, free: 75.84 MB / 378.7 MB Notification: Performance of pre-optimization done (n=205): time 3.868e-06/0.4782, allocations: 6.891 kB / 0.5156 GB, free: 75.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=222): time 0.01614/0.4944, allocations: 10.54 MB / 0.5259 GB, free: 71.2 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.71e-05/0.4944, allocations: 79.69 kB / 0.526 GB, free: 71.13 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002901/0.4973, allocations: 2.896 MB / 0.5288 GB, free: 69.84 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001123/0.4975, allocations: 61.27 kB / 0.5289 GB, free: 69.79 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008785/0.4983, allocations: 2.362 MB / 0.5312 GB, free: 67.72 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003387/0.4987, allocations: 0.774 MB / 0.532 GB, free: 67.05 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001299/0.4988, allocations: 55.41 kB / 0.532 GB, free: 67.01 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000106/0.4989, allocations: 422.4 kB / 0.5324 GB, free: 66.62 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001575/0.5005, allocations: 1.272 MB / 0.5337 GB, free: 65.71 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001846/0.5024, allocations: 2.184 MB / 0.5358 GB, free: 63.12 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003578/0.506, allocations: 3.676 MB / 0.5394 GB, free: 59.05 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.06e-05/0.506, allocations: 8 kB / 0.5394 GB, free: 59.04 MB / 378.7 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.005421/0.5114, allocations: 4.474 MB / 0.5438 GB, free: 54.5 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.468e-05/0.5114, allocations: 16 kB / 0.5438 GB, free: 54.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.252e-05/0.5115, allocations: 30.41 kB / 0.5438 GB, free: 54.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009749/0.5125, allocations: 0.5336 MB / 0.5443 GB, free: 53.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002092/0.5146, allocations: 0.6903 MB / 0.545 GB, free: 53.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005808/0.5204, allocations: 9.481 MB / 0.5543 GB, free: 43.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001976/0.5224, allocations: 183.7 kB / 0.5544 GB, free: 42.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001723/0.5226, allocations: 134.9 kB / 0.5546 GB, free: 42.79 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (345): * Single equations (assignments): 338 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(3,100.0%) 11,(1,100.0%) 6,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001979/0.5245, allocations: 1.52 MB / 0.556 GB, free: 41.26 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003522/0.5249, allocations: 316.2 kB / 0.5563 GB, free: 40.95 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005083/0.53, allocations: 3.924 MB / 0.5602 GB, free: 36.93 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-05/0.53, allocations: 20 kB / 0.5602 GB, free: 36.91 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.111e-05/0.53, allocations: 8 kB / 0.5602 GB, free: 36.9 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.68e-05/0.5301, allocations: 16.05 kB / 0.5602 GB, free: 36.88 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009942/0.54, allocations: 8.534 MB / 0.5686 GB, free: 28.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.373e-06/0.54, allocations: 4 kB / 0.5686 GB, free: 28.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001418/0.5414, allocations: 379.8 kB / 0.5689 GB, free: 27.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001548/0.543, allocations: 0.7453 MB / 0.5697 GB, free: 27.07 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001292/0.5431, allocations: 63.97 kB / 0.5697 GB, free: 27.01 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01005/0.5532, allocations: 15.36 MB / 0.5847 GB, free: 10.6 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.5532, allocations: 4 kB / 0.5847 GB, free: 10.6 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006689/0.5599, allocations: 5.612 MB / 0.5902 GB, free: 4.852 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001047/0.561, allocations: 0.6571 MB / 0.5908 GB, free: 4.172 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003486/0.5613, allocations: 51.98 kB / 0.5909 GB, free: 4.121 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001346/0.5627, allocations: 147.9 kB / 0.591 GB, free: 3.977 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003945/0.5631, allocations: 165.6 kB / 0.5912 GB, free: 3.816 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001231/0.5632, allocations: 67.98 kB / 0.5913 GB, free: 3.75 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002232/0.5655, allocations: 1.952 MB / 0.5932 GB, free: 1.801 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5655, allocations: 0 / 0.5932 GB, free: 1.801 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002424/0.5679, allocations: 0.9402 MB / 0.5941 GB, free: 0.8633 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 13 (vfController.x,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,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.phi) * 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 (182): * Single equations (assignments): 174 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(1,100.0%) 5,(3,100.0%) 11,(1,100.0%) 6,(1,100.0%) 1,(2,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008025/0.5759, allocations: 6.317 MB / 0.6002 GB, free: 10.41 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005471/0.5814, allocations: 3.988 MB / 0.6041 GB, free: 6.324 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.5814, allocations: 0 / 0.6041 GB, free: 6.324 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003589/0.585, allocations: 2.671 MB / 0.6068 GB, free: 3.559 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00461/0.5897, allocations: 0.8077 MB / 0.6075 GB, free: 2.766 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04583/0.6355, allocations: 29.29 MB / 0.6361 GB, free: 3.664 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002762/0.6383, allocations: 3.226 MB / 0.6393 GB, free: 420 kB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002508/0.6408, allocations: 1.98 MB / 0.6412 GB, free: 14.49 MB / 442.7 MB Notification: Performance of SimCode: time 7.81e-07/0.6408, allocations: 0 / 0.6412 GB, free: 14.49 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.788/9.429, allocations: 266.7 MB / 0.9017 GB, free: 120.5 MB / 474.7 MB (rm -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter.fmu > Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches