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.001732/0.001732, allocations: 108.2 kB / 16.92 MB, free: 6.145 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.002037/0.002037, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.219/2.219, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001624/0.001624, allocations: 47.42 kB / 300.7 MB, free: 5.746 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1834/0.1851, allocations: 49.44 MB / 350.2 MB, free: 4.293 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.4016/0.5868, allocations: 20.27 MB / 370.5 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02161/0.6085, allocations: 5.914 MB / 376.4 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007781/0.6163, allocations: 135.6 kB / 376.5 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009093/0.6255, allocations: 1.35 MB / 377.9 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01512/0.6407, allocations: 1.922 MB / 379.8 MB, free: 9.645 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009456/0.6502, allocations: 1.226 MB / 381 MB, free: 8.984 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01697/0.6672, allocations: 6.067 MB / 387.1 MB, free: 6.07 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0166/0.6839, allocations: 5.434 MB / 392.5 MB, free: 3.848 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009279/0.6932, allocations: 2.83 MB / 395.3 MB, free: 2.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01022/0.7035, allocations: 3.382 MB / 398.7 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004115/0.7077, allocations: 0.7812 MB / 399.5 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007169/0.7149, allocations: 1.08 MB / 400.6 MB, free: 32 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006352/0.7212, allocations: 1.937 MB / 402.5 MB, free: 14.11 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01226/0.7336, allocations: 3.351 MB / 405.9 MB, free: 10.77 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02378/0.7574, allocations: 10.22 MB / 416.1 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.027e-06/0.7575, allocations: 0 / 416.1 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.7575, allocations: 0 / 416.1 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000421/0.7579, allocations: 0 / 416.1 MB, free: 0.7305 MB / 318.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.0377/0.7956, allocations: 6.582 MB / 422.7 MB, free: 10.09 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.17e-05/0.7957, allocations: 11.89 kB / 422.7 MB, free: 10.08 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004489/0.8002, allocations: 0.6989 MB / 423.4 MB, free: 9.375 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01056/0.8108, allocations: 1.02 MB / 424.4 MB, free: 8.352 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01503/0.8259, allocations: 3.459 MB / 427.9 MB, free: 4.863 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009138/0.8269, allocations: 400.8 kB / 428.3 MB, free: 4.473 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003716/0.8306, allocations: 0.5028 MB / 428.8 MB, free: 3.973 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03259/0.8632, allocations: 6.781 MB / 435.5 MB, free: 13.13 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000375/0.8637, allocations: 15.84 kB / 435.6 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002654/0.8663, allocations: 206.3 kB / 435.8 MB, free: 12.92 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004749/0.8668, allocations: 238.2 kB / 436 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02402/0.8909, allocations: 5.752 MB / 441.7 MB, free: 6.922 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07599/0.9669, allocations: 21.1 MB / 462.8 MB, free: 1.508 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0161/0.9831, allocations: 8.541 MB / 471.4 MB, free: 8.012 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006957/0.9901, allocations: 2.128 MB / 473.5 MB, free: 5.879 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02135/1.012, allocations: 5.927 MB / 479.4 MB, free: 15.88 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.075e-05/1.012, allocations: 52.56 kB / 479.5 MB, free: 15.82 MB / 398.1 MB Notification: Performance of pre-optimization done (n=205): time 9.047e-06/1.012, allocations: 0 / 479.5 MB, free: 15.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=222): time 0.04106/1.053, allocations: 10.38 MB / 489.9 MB, free: 5.203 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001035/1.053, allocations: 77.39 kB / 489.9 MB, free: 5.113 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008652/1.062, allocations: 2.9 MB / 492.8 MB, free: 2.203 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007121/1.062, allocations: 61.7 kB / 492.9 MB, free: 2.137 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002891/1.065, allocations: 2.352 MB / 495.3 MB, free: 15.77 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001814/1.067, allocations: 0.7672 MB / 496 MB, free: 15 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002823/1.07, allocations: 0.5137 MB / 496.5 MB, free: 14.48 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000213/1.07, allocations: 309.1 kB / 496.8 MB, free: 14.18 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004381/1.075, allocations: 1.263 MB / 498.1 MB, free: 12.91 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005241/1.08, allocations: 2.175 MB / 0.4885 GB, free: 10.34 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009951/1.09, allocations: 3.672 MB / 0.4921 GB, free: 6.266 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.427e-05/1.09, allocations: 12 kB / 0.4921 GB, free: 6.254 MB / 414.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.01587/1.106, allocations: 4.45 MB / 0.4965 GB, free: 1.734 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.557e-05/1.106, allocations: 16 kB / 0.4965 GB, free: 1.719 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.803e-05/1.106, allocations: 28 kB / 0.4965 GB, free: 1.691 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002149/1.108, allocations: 0.5176 MB / 0.497 GB, free: 1.156 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004965/1.113, allocations: 0.6903 MB / 0.4977 GB, free: 476 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01697/1.13, allocations: 10.19 MB / 0.5077 GB, free: 5.574 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005255/1.136, allocations: 167.8 kB / 0.5078 GB, free: 5.41 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008181/1.136, allocations: 132 kB / 0.5079 GB, free: 5.281 MB / 430.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.006191/1.143, allocations: 1.516 MB / 0.5094 GB, free: 3.754 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00174/1.144, allocations: 316.1 kB / 0.5097 GB, free: 3.441 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01325/1.158, allocations: 3.882 MB / 0.5135 GB, free: 15.47 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.051e-05/1.158, allocations: 20 kB / 0.5135 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-05/1.158, allocations: 8 kB / 0.5135 GB, free: 15.44 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.436e-05/1.158, allocations: 11.91 kB / 0.5136 GB, free: 15.43 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03665/1.195, allocations: 8.491 MB / 0.5219 GB, free: 6.793 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.743e-05/1.195, allocations: 4 kB / 0.5219 GB, free: 6.789 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002999/1.198, allocations: 380 kB / 0.5222 GB, free: 6.418 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003308/1.201, allocations: 0.7314 MB / 0.5229 GB, free: 5.664 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004664/1.202, allocations: 59.97 kB / 0.523 GB, free: 5.605 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3538/1.555, allocations: 16.64 MB / 0.5392 GB, free: 134.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.291e-05/1.555, allocations: 5.469 kB / 0.5392 GB, free: 134.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0192/1.575, allocations: 5.546 MB / 0.5447 GB, free: 132 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003804/1.578, allocations: 0.6521 MB / 0.5453 GB, free: 131.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00175/1.58, allocations: 54.75 kB / 0.5453 GB, free: 131.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004038/1.584, allocations: 128.1 kB / 0.5455 GB, free: 131.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009936/1.585, allocations: 174.9 kB / 0.5456 GB, free: 131.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004323/1.586, allocations: 67.78 kB / 0.5457 GB, free: 131.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.007641/1.593, allocations: 1.962 MB / 0.5476 GB, free: 130.9 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.252e-06/1.593, allocations: 0 / 0.5476 GB, free: 130.9 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.008132/1.602, allocations: 0.9326 MB / 0.5485 GB, free: 130.8 MB / 446.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.01823/1.62, allocations: 6.262 MB / 0.5546 GB, free: 127.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01847/1.638, allocations: 5.406 MB / 0.5599 GB, free: 125.9 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.389e-05/1.639, allocations: 3.906 kB / 0.5599 GB, free: 125.9 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007365/1.646, allocations: 2.66 MB / 0.5625 GB, free: 124.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01077/1.657, allocations: 0.8401 MB / 0.5633 GB, free: 124.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1079/1.765, allocations: 39.56 MB / 0.602 GB, free: 86.19 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008349/1.773, allocations: 3.294 MB / 0.6052 GB, free: 82.86 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.005694/1.779, allocations: 0.7655 MB / 0.6059 GB, free: 82.09 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005534/1.784, allocations: 1.94 MB / 0.6078 GB, free: 80.15 MB / 446.1 MB Notification: Performance of SimCode: time 1.613e-06/1.784, allocations: 0 / 0.6078 GB, free: 80.15 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2273/2.012, allocations: 82.76 MB / 0.6887 GB, free: 14.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.69/20.7, allocations: 8.266 kB / 0.6887 GB, free: 14.09 MB / 462.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_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_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.csv","/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