Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001315/0.001315, allocations: 108.4 kB / 17.06 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001266/0.001266, allocations: 197.3 kB / 18.01 MB, free: 5.051 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.43/1.43, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001599/0.0016, allocations: 51.92 kB / 350.8 MB, free: 3.703 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2834/0.2851, allocations: 49.43 MB / 400.3 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.02578/0.3109, allocations: 20.28 MB / 420.5 MB, free: 4.422 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01346/0.3244, allocations: 5.907 MB / 426.4 MB, free: 14.49 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004269/0.3287, allocations: 135.4 kB / 426.6 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004885/0.3336, allocations: 1.346 MB / 427.9 MB, free: 13 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007543/0.3413, allocations: 1.914 MB / 429.8 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004167/0.3455, allocations: 1.233 MB / 431.1 MB, free: 9.848 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009739/0.3553, allocations: 6.114 MB / 437.2 MB, free: 3.703 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008124/0.3634, allocations: 5.435 MB / 442.6 MB, free: 14.18 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005695/0.3692, allocations: 2.827 MB / 445.5 MB, free: 11.34 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006639/0.3759, allocations: 3.39 MB / 448.8 MB, free: 7.941 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002257/0.3782, allocations: 0.7852 MB / 449.6 MB, free: 7.156 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004742/0.3829, allocations: 1.062 MB / 450.7 MB, free: 6.094 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004032/0.387, allocations: 1.944 MB / 452.6 MB, free: 4.145 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005857/0.3929, allocations: 3.353 MB / 456 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01516/0.4081, allocations: 10.33 MB / 466.3 MB, free: 6.406 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.167e-06/0.4081, allocations: 4 kB / 466.3 MB, free: 6.402 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.474e-06/0.4081, allocations: 0 / 466.3 MB, free: 6.402 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003255/0.4085, allocations: 0 / 466.3 MB, free: 6.402 MB / 382.1 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.02095/0.4294, allocations: 6.738 MB / 473.1 MB, free: 15.57 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.142e-05/0.4295, allocations: 11.89 kB / 473.1 MB, free: 15.56 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001824/0.4313, allocations: 0.7039 MB / 473.8 MB, free: 14.85 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005289/0.4366, allocations: 1.036 MB / 474.8 MB, free: 13.81 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008528/0.4452, allocations: 3.593 MB / 478.4 MB, free: 10.14 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004998/0.4457, allocations: 391.4 kB / 478.8 MB, free: 9.758 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001738/0.4475, allocations: 0.5038 MB / 479.3 MB, free: 9.254 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01694/0.4644, allocations: 6.783 MB / 486.1 MB, free: 2.402 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000144/0.4646, allocations: 11.94 kB / 486.1 MB, free: 2.391 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006342/0.4653, allocations: 215.9 kB / 486.3 MB, free: 2.18 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002709/0.4655, allocations: 238.2 kB / 486.5 MB, free: 1.945 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01225/0.4778, allocations: 5.752 MB / 492.3 MB, free: 12.18 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04081/0.5187, allocations: 20.9 MB / 0.5011 GB, free: 6.801 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01005/0.5288, allocations: 8.54 MB / 0.5095 GB, free: 13.31 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004078/0.5329, allocations: 2.101 MB / 0.5115 GB, free: 11.2 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01179/0.5447, allocations: 5.904 MB / 0.5173 GB, free: 5.16 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.771e-05/0.5448, allocations: 52.56 kB / 0.5174 GB, free: 5.098 MB / 446.1 MB Notification: Performance of pre-optimization done (n=205): time 3.847e-06/0.5448, allocations: 8 kB / 0.5174 GB, free: 5.09 MB / 446.1 MB Notification: Performance of matching and sorting (n=222): time 0.02341/0.5682, allocations: 10.46 MB / 0.5276 GB, free: 10.38 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.174e-05/0.5683, allocations: 77.41 kB / 0.5277 GB, free: 10.3 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004762/0.5731, allocations: 2.9 MB / 0.5305 GB, free: 7.387 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002787/0.5734, allocations: 65.7 kB / 0.5306 GB, free: 7.316 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002027/0.5754, allocations: 2.43 MB / 0.5329 GB, free: 4.871 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008556/0.5763, allocations: 0.7979 MB / 0.5337 GB, free: 4.066 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000874/0.5772, allocations: 0.5179 MB / 0.5342 GB, free: 3.539 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.5773, allocations: 301.1 kB / 0.5345 GB, free: 3.242 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002344/0.5797, allocations: 1.271 MB / 0.5357 GB, free: 1.969 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.251/0.8306, allocations: 2.171 MB / 0.5379 GB, free: 124.8 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005916/0.8366, allocations: 3.67 MB / 0.5414 GB, free: 123.4 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.625e-05/0.8367, allocations: 11.88 kB / 0.5415 GB, free: 123.4 MB / 462.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.006859/0.8435, allocations: 4.461 MB / 0.5458 GB, free: 121.7 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.556e-05/0.8436, allocations: 20.34 kB / 0.5458 GB, free: 121.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.135e-05/0.8436, allocations: 31.72 kB / 0.5459 GB, free: 121.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001049/0.8447, allocations: 0.5115 MB / 0.5464 GB, free: 121.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00226/0.847, allocations: 0.6838 MB / 0.547 GB, free: 121.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00725/0.8542, allocations: 10.18 MB / 0.557 GB, free: 112.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002631/0.8569, allocations: 180.9 kB / 0.5571 GB, free: 112.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000387/0.8573, allocations: 127.4 kB / 0.5573 GB, free: 112.8 MB / 462.1 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 (348): * Single equations (assignments): 341 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * 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): 5 systems {(3,11,100.0%), (1,3,100.0%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002554/0.8599, allocations: 1.505 MB / 0.5587 GB, free: 112 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000772/0.8607, allocations: 331.9 kB / 0.5591 GB, free: 112 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005756/0.8664, allocations: 3.899 MB / 0.5629 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.796e-05/0.8665, allocations: 19.12 kB / 0.5629 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.587e-05/0.8665, allocations: 7.812 kB / 0.5629 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.293e-05/0.8665, allocations: 11.25 kB / 0.5629 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01197/0.8785, allocations: 8.471 MB / 0.5712 GB, free: 103.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.078e-05/0.8785, allocations: 4.469 kB / 0.5712 GB, free: 103.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001477/0.88, allocations: 383.4 kB / 0.5715 GB, free: 102.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001652/0.8817, allocations: 0.7219 MB / 0.5722 GB, free: 102.2 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001583/0.8819, allocations: 59.97 kB / 0.5723 GB, free: 102.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01081/0.8927, allocations: 16.65 MB / 0.5886 GB, free: 84.53 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.8927, allocations: 7.938 kB / 0.5886 GB, free: 84.52 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007527/0.9003, allocations: 5.566 MB / 0.594 GB, free: 78.98 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001328/0.9016, allocations: 0.6715 MB / 0.5947 GB, free: 78.29 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004866/0.9021, allocations: 55.98 kB / 0.5947 GB, free: 78.23 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001495/0.9036, allocations: 123.9 kB / 0.5948 GB, free: 78.11 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003604/0.904, allocations: 173.6 kB / 0.595 GB, free: 77.94 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001277/0.9041, allocations: 71.81 kB / 0.5951 GB, free: 77.88 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002445/0.9066, allocations: 1.96 MB / 0.597 GB, free: 75.92 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.014e-06/0.9066, allocations: 0 / 0.597 GB, free: 75.92 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003331/0.9099, allocations: 0.9356 MB / 0.5979 GB, free: 74.99 MB / 462.1 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 (185): * Single equations (assignments): 177 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,5,100.0%), (3,11,100.0%), (1,3,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,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.007807/0.9177, allocations: 6.28 MB / 0.604 GB, free: 68.57 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005541/0.9233, allocations: 3.968 MB / 0.6079 GB, free: 64.5 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.404e-06/0.9234, allocations: 4.5 kB / 0.6079 GB, free: 64.5 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003594/0.927, allocations: 2.677 MB / 0.6105 GB, free: 61.73 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003814/0.9308, allocations: 0.8354 MB / 0.6113 GB, free: 60.91 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04824/0.9791, allocations: 33.41 MB / 0.644 GB, free: 26.25 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003231/0.9823, allocations: 3.294 MB / 0.6472 GB, free: 22.92 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002458/0.9848, allocations: 0.7617 MB / 0.6479 GB, free: 22.15 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002441/0.9873, allocations: 1.94 MB / 0.6498 GB, free: 20.21 MB / 462.1 MB Notification: Performance of SimCode: time 8.52e-07/0.9873, allocations: 0 / 0.6498 GB, free: 20.21 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1671/1.154, allocations: 81.79 MB / 0.7297 GB, free: 3.152 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.04/17.19, allocations: 10.09 kB / 0.7297 GB, free: 3.145 MB / 0.5137 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches