Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",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.001063/0.001063, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001004/0.001004, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.342/1.342, allocations: 222.9 MB / 242.3 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2045/0.2045, allocations: 44.19 MB / 336.6 MB, free: 2.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 68.25 kB / 408.5 MB, free: 27.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09017/0.09141, allocations: 60.82 MB / 469.3 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01198/0.1034, allocations: 11.68 MB / 481 MB, free: 2.57 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006117/0.1096, allocations: 3.886 MB / 484.9 MB, free: 14.67 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001174/0.1108, allocations: 75.69 kB / 485 MB, free: 14.59 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001756/0.1126, allocations: 0.8692 MB / 485.9 MB, free: 13.72 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002098/0.1147, allocations: 0.9512 MB / 486.8 MB, free: 12.76 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009245/0.1156, allocations: 0.5175 MB / 487.3 MB, free: 12.25 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002859/0.1185, allocations: 3.313 MB / 490.6 MB, free: 8.922 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003184/0.1217, allocations: 3.04 MB / 493.7 MB, free: 5.816 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001701/0.1234, allocations: 1.55 MB / 495.2 MB, free: 4.262 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002202/0.1256, allocations: 2.008 MB / 497.2 MB, free: 2.246 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005316/0.1262, allocations: 428 kB / 497.7 MB, free: 1.828 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008549/0.127, allocations: 0.5272 MB / 498.2 MB, free: 1.301 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001023/0.128, allocations: 1.231 MB / 499.4 MB, free: 68 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001697/0.1298, allocations: 1.894 MB / 0.4896 GB, free: 14.16 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004173/0.1339, allocations: 5.503 MB / 0.4949 GB, free: 8.645 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.197e-06/0.134, allocations: 0 / 0.4949 GB, free: 8.645 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.134, allocations: 0 / 0.4949 GB, free: 8.645 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.859e-05/0.134, allocations: 0 / 0.4949 GB, free: 8.645 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: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.00641/0.1404, allocations: 3.833 MB / 0.4987 GB, free: 4.742 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.511e-05/0.1405, allocations: 8.031 kB / 0.4987 GB, free: 4.734 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004649/0.141, allocations: 409.2 kB / 0.4991 GB, free: 4.324 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008963/0.1419, allocations: 400.4 kB / 0.4995 GB, free: 3.93 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00293/0.1448, allocations: 2.024 MB / 0.5014 GB, free: 1.852 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001733/0.145, allocations: 225.8 kB / 0.5016 GB, free: 1.629 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00039/0.1454, allocations: 283.8 kB / 0.5019 GB, free: 1.352 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1683/0.3137, allocations: 3.731 MB / 0.5056 GB, free: 45.61 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.206e-05/0.3138, allocations: 5.203 kB / 0.5056 GB, free: 45.61 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002425/0.3141, allocations: 116 kB / 0.5057 GB, free: 45.52 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001569/0.3142, allocations: 142.2 kB / 0.5058 GB, free: 45.5 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005213/0.3194, allocations: 3.173 MB / 0.5089 GB, free: 44.38 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01618/0.3356, allocations: 11.57 MB / 0.5202 GB, free: 37.97 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003186/0.3389, allocations: 2.181 MB / 0.5223 GB, free: 36.52 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001738/0.3406, allocations: 1.227 MB / 0.5235 GB, free: 35.93 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002449/0.3409, allocations: 211.1 kB / 0.5237 GB, free: 35.73 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.255e-05/0.3409, allocations: 50.09 kB / 0.5238 GB, free: 35.68 MB / 382.1 MB Notification: Performance of pre-optimization done (n=139): time 3.166e-06/0.3409, allocations: 0 / 0.5238 GB, free: 35.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.01425/0.3552, allocations: 7.864 MB / 0.5315 GB, free: 31.33 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.59e-05/0.3552, allocations: 68.72 kB / 0.5315 GB, free: 31.25 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002024/0.3573, allocations: 1.941 MB / 0.5334 GB, free: 29.27 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.365e-05/0.3574, allocations: 49.7 kB / 0.5335 GB, free: 29.21 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005476/0.3579, allocations: 1.374 MB / 0.5348 GB, free: 27.82 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000257/0.3582, allocations: 0.5115 MB / 0.5353 GB, free: 27.32 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004188/0.3586, allocations: 323.3 kB / 0.5356 GB, free: 27 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.109e-05/0.3586, allocations: 305.1 kB / 0.5359 GB, free: 26.7 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001118/0.3598, allocations: 0.8823 MB / 0.5368 GB, free: 25.81 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001246/0.361, allocations: 1.348 MB / 0.5381 GB, free: 24.28 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002474/0.3635, allocations: 2.385 MB / 0.5404 GB, free: 21.7 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/0.3635, allocations: 4 kB / 0.5404 GB, free: 21.7 MB / 382.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.003753/0.3673, allocations: 2.94 MB / 0.5433 GB, free: 18.72 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.945e-05/0.3673, allocations: 12 kB / 0.5433 GB, free: 18.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.443e-05/0.3673, allocations: 12 kB / 0.5433 GB, free: 18.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007559/0.3681, allocations: 388 kB / 0.5437 GB, free: 18.31 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001539/0.3696, allocations: 459.2 kB / 0.5441 GB, free: 17.86 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004276/0.3739, allocations: 6.757 MB / 0.5507 GB, free: 10.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001356/0.3753, allocations: 123.5 kB / 0.5508 GB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001128/0.3754, allocations: 75.98 kB / 0.5509 GB, free: 10.51 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * 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 (206): * Single equations (assignments): 202 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 3 systems {(2,9,100.0%), (1,2,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001234/0.3767, allocations: 0.9032 MB / 0.5518 GB, free: 9.598 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000287/0.377, allocations: 205.4 kB / 0.552 GB, free: 9.395 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0042/0.3812, allocations: 2.914 MB / 0.5548 GB, free: 6.453 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.856e-06/0.3812, allocations: 16 kB / 0.5549 GB, free: 6.438 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.3812, allocations: 4.094 kB / 0.5549 GB, free: 6.434 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.346e-05/0.3812, allocations: 15.95 kB / 0.5549 GB, free: 6.418 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008412/0.3896, allocations: 6.153 MB / 0.5609 GB, free: 172 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.615e-06/0.3897, allocations: 0 / 0.5609 GB, free: 172 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001/0.3907, allocations: 240.1 kB / 0.5611 GB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001956/0.3927, allocations: 0.8078 MB / 0.5619 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001098/0.3928, allocations: 35.98 kB / 0.5619 GB, free: 15.08 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01155/0.4043, allocations: 10.77 MB / 0.5725 GB, free: 3.895 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.4044, allocations: 4 kB / 0.5725 GB, free: 3.891 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006287/0.4107, allocations: 4.174 MB / 0.5765 GB, free: 15.65 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008572/0.4115, allocations: 486.4 kB / 0.577 GB, free: 15.16 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002725/0.4118, allocations: 36 kB / 0.577 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001075/0.4129, allocations: 91.88 kB / 0.5771 GB, free: 15.03 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002585/0.4132, allocations: 125 kB / 0.5772 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.754e-05/0.4133, allocations: 51.98 kB / 0.5773 GB, free: 14.86 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001869/0.4151, allocations: 1.336 MB / 0.5786 GB, free: 13.5 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.4151, allocations: 0 / 0.5786 GB, free: 13.5 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00174/0.4169, allocations: 0.5781 MB / 0.5792 GB, free: 12.92 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.PI_q.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 (116): * Single equations (assignments): 113 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,9,100.0%), (1,2,100.0%), (5,29,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006689/0.4236, allocations: 4.822 MB / 0.5839 GB, free: 8.016 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005465/0.4291, allocations: 3.306 MB / 0.5871 GB, free: 4.668 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.4291, allocations: 0 / 0.5871 GB, free: 4.668 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002241/0.4313, allocations: 1.632 MB / 0.5887 GB, free: 3 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00247/0.4338, allocations: 0.5317 MB / 0.5892 GB, free: 2.477 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03082/0.4647, allocations: 23.95 MB / 0.6126 GB, free: 8.637 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00183/0.4665, allocations: 2.221 MB / 0.6148 GB, free: 6.387 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001398/0.4679, allocations: 461.7 kB / 0.6152 GB, free: 5.934 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001347/0.4693, allocations: 1.143 MB / 0.6163 GB, free: 4.793 MB / 446.1 MB Notification: Performance of SimCode: time 5.91e-07/0.4693, allocations: 4 kB / 0.6163 GB, free: 4.789 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08895/0.5582, allocations: 54.41 MB / 0.6695 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.04/10.6, allocations: 7.875 kB / 0.6695 GB, free: 14.84 MB / 0.4981 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 ModelicaTest_4_0_0_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses.fmu > ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Machines/SMPM_VoltageSourceWithLosses/SMPM_VoltageSourceWithLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches