Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_3_2_3_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.001109/0.001109, allocations: 108.8 kB / 16.41 MB, free: 6.504 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.001085/0.001085, allocations: 188.1 kB / 17.34 MB, free: 5.758 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.253/1.253, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1856/0.1856, allocations: 43.52 MB / 314.1 MB, free: 468 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001393/0.001393, allocations: 72.31 kB / 441.3 MB, free: 6.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08516/0.08657, allocations: 57.79 MB / 499.1 MB, free: 12.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01224/0.09883, allocations: 11.63 MB / 0.4988 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006421/0.1053, allocations: 3.961 MB / 0.5026 GB, free: 12.66 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001373/0.1067, allocations: 63.69 kB / 0.5027 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001912/0.1086, allocations: 0.9239 MB / 0.5036 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00226/0.1109, allocations: 0.9981 MB / 0.5046 GB, free: 10.66 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009313/0.1118, allocations: 0.515 MB / 0.5051 GB, free: 10.14 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002879/0.1147, allocations: 3.337 MB / 0.5083 GB, free: 6.793 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002875/0.1176, allocations: 2.985 MB / 0.5112 GB, free: 3.746 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001574/0.1192, allocations: 1.557 MB / 0.5128 GB, free: 2.184 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00204/0.1212, allocations: 2.005 MB / 0.5147 GB, free: 176 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004869/0.1217, allocations: 432 kB / 0.5151 GB, free: 15.75 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007771/0.1225, allocations: 0.5272 MB / 0.5156 GB, free: 15.22 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001018/0.1236, allocations: 1.231 MB / 0.5168 GB, free: 13.99 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001589/0.1252, allocations: 1.89 MB / 0.5187 GB, free: 12.09 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004637/0.1298, allocations: 5.589 MB / 0.5241 GB, free: 6.48 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.1298, allocations: 0 / 0.5241 GB, free: 6.48 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1298, allocations: 0 / 0.5241 GB, free: 6.48 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.27e-05/0.1299, allocations: 0 / 0.5241 GB, free: 6.48 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: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.006539/0.1364, allocations: 3.927 MB / 0.528 GB, free: 2.48 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.629e-05/0.1365, allocations: 11.89 kB / 0.528 GB, free: 2.469 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004519/0.1369, allocations: 405.2 kB / 0.5284 GB, free: 2.062 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008868/0.1378, allocations: 410.6 kB / 0.5288 GB, free: 1.66 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1716/0.3095, allocations: 1.968 MB / 0.5307 GB, free: 36.55 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002041/0.3097, allocations: 217.4 kB / 0.5309 GB, free: 36.54 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007324/0.3105, allocations: 282.4 kB / 0.5312 GB, free: 36.54 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005877/0.3164, allocations: 3.729 MB / 0.5348 GB, free: 36.14 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.016e-05/0.3165, allocations: 10.47 kB / 0.5348 GB, free: 36.14 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002302/0.3167, allocations: 114.6 kB / 0.5349 GB, free: 36.05 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001222/0.3168, allocations: 142.7 kB / 0.5351 GB, free: 36.04 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004577/0.3214, allocations: 3.167 MB / 0.5382 GB, free: 34.91 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01607/0.3375, allocations: 11.47 MB / 0.5494 GB, free: 29.36 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003233/0.3407, allocations: 2.168 MB / 0.5515 GB, free: 28.07 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00174/0.3425, allocations: 1.229 MB / 0.5527 GB, free: 27.48 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002474/0.3428, allocations: 211.5 kB / 0.5529 GB, free: 27.28 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.333e-05/0.3428, allocations: 46.25 kB / 0.5529 GB, free: 27.23 MB / 414.1 MB Notification: Performance of pre-optimization done (n=139): time 4.088e-06/0.3428, allocations: 0 / 0.5529 GB, free: 27.23 MB / 414.1 MB Notification: Performance of matching and sorting (n=154): time 0.01537/0.3582, allocations: 8.255 MB / 0.561 GB, free: 22.76 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.005e-05/0.3582, allocations: 68.12 kB / 0.5611 GB, free: 22.69 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002084/0.3603, allocations: 1.934 MB / 0.5629 GB, free: 21.65 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.889e-05/0.3604, allocations: 54.66 kB / 0.563 GB, free: 21.6 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000543/0.361, allocations: 1.392 MB / 0.5644 GB, free: 20.53 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00026/0.3613, allocations: 0.5459 MB / 0.5649 GB, free: 20.05 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004304/0.3617, allocations: 323.2 kB / 0.5652 GB, free: 19.87 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 2.964e-05/0.3617, allocations: 305.1 kB / 0.5655 GB, free: 19.57 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00113/0.3629, allocations: 0.8824 MB / 0.5663 GB, free: 18.84 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001198/0.3641, allocations: 1.346 MB / 0.5677 GB, free: 17.3 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002385/0.3665, allocations: 2.39 MB / 0.57 GB, free: 14.72 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.841e-06/0.3665, allocations: 8 kB / 0.57 GB, free: 14.71 MB / 414.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.003617/0.3701, allocations: 2.933 MB / 0.5729 GB, free: 11.75 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.979e-05/0.3701, allocations: 15.94 kB / 0.5729 GB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.429e-05/0.3702, allocations: 16 kB / 0.5729 GB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007346/0.3709, allocations: 396.9 kB / 0.5733 GB, free: 11.32 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00148/0.3724, allocations: 445.5 kB / 0.5737 GB, free: 10.89 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004227/0.3766, allocations: 6.758 MB / 0.5803 GB, free: 3.727 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001415/0.3781, allocations: 123.8 kB / 0.5804 GB, free: 3.605 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001383/0.3782, allocations: 83.44 kB / 0.5805 GB, free: 3.527 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * 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.001118/0.3793, allocations: 0.9176 MB / 0.5814 GB, free: 2.602 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002812/0.3796, allocations: 218.6 kB / 0.5816 GB, free: 2.387 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004349/0.384, allocations: 2.907 MB / 0.5844 GB, free: 15.46 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.185e-05/0.384, allocations: 16 kB / 0.5845 GB, free: 15.45 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.005e-05/0.384, allocations: 8 kB / 0.5845 GB, free: 15.44 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.536e-05/0.3841, allocations: 7.969 kB / 0.5845 GB, free: 15.43 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009983/0.394, allocations: 6.148 MB / 0.5905 GB, free: 9.184 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.035e-06/0.3941, allocations: 4 kB / 0.5905 GB, free: 9.18 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001026/0.3951, allocations: 235.6 kB / 0.5907 GB, free: 8.949 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001918/0.397, allocations: 0.8073 MB / 0.5915 GB, free: 8.137 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001028/0.3971, allocations: 43.97 kB / 0.5915 GB, free: 8.094 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01159/0.4087, allocations: 10.75 MB / 0.602 GB, free: 12.93 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.4e-06/0.4088, allocations: 7.938 kB / 0.602 GB, free: 12.93 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006323/0.4151, allocations: 4.188 MB / 0.6061 GB, free: 8.656 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000948/0.4161, allocations: 499.5 kB / 0.6066 GB, free: 8.148 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002666/0.4163, allocations: 35.98 kB / 0.6066 GB, free: 8.113 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001093/0.4174, allocations: 96.12 kB / 0.6067 GB, free: 8.02 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000209/0.4177, allocations: 125 kB / 0.6069 GB, free: 7.898 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001034/0.4178, allocations: 55.97 kB / 0.6069 GB, free: 7.844 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001791/0.4196, allocations: 1.333 MB / 0.6082 GB, free: 6.488 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4196, allocations: 0 / 0.6082 GB, free: 6.488 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00171/0.4213, allocations: 0.5703 MB / 0.6088 GB, free: 5.918 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.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 (117): * Single equations (assignments): 114 * 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.006474/0.4278, allocations: 4.844 MB / 0.6135 GB, free: 0.9883 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003643/0.4314, allocations: 2.648 MB / 0.6161 GB, free: 14.28 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.4314, allocations: 0 / 0.6161 GB, free: 14.28 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002182/0.4336, allocations: 1.642 MB / 0.6177 GB, free: 12.61 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002275/0.4359, allocations: 0.5392 MB / 0.6182 GB, free: 12.06 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02882/0.4648, allocations: 21.59 MB / 0.6393 GB, free: 5.754 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001947/0.4667, allocations: 2.217 MB / 0.6415 GB, free: 3.508 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001238/0.468, allocations: 465.7 kB / 0.6419 GB, free: 3.051 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001407/0.4694, allocations: 1.144 MB / 0.643 GB, free: 1.906 MB / 478.1 MB Notification: Performance of SimCode: time 6.71e-07/0.4694, allocations: 0 / 0.643 GB, free: 1.906 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09319/0.5626, allocations: 55.45 MB / 0.6972 GB, free: 10.38 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.32/12.88, allocations: 19.84 kB / 0.6972 GB, free: 10.36 MB / 0.5294 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_3_2_3_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses.fmu > ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Electrical/Machines/SMPM_VoltageSourceWithLosses/SMPM_VoltageSourceWithLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches