Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.idq_sr.1.|smpm.idq_sr.2.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") translateModel(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.idq_sr.1.|smpm.idq_sr.2.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001285/0.001285, allocations: 178.4 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.801/1.801, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008757/0.0008762, allocations: 99.78 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4238/0.4238, allocations: 43.56 MB / 362.7 MB, free: 52.1 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004966/0.0004969, allocations: 16 kB / 431.4 MB, free: 6.164 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1542/0.1547, allocations: 58.86 MB / 490.2 MB, free: 11.22 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01151/0.1663, allocations: 10.27 MB / 0.4888 GB, free: 0.9102 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.3183/0.4846, allocations: 3.713 MB / 0.4924 GB, free: 35.34 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002382/0.4871, allocations: 58.69 kB / 0.4925 GB, free: 35.34 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002273/0.4894, allocations: 0.6837 MB / 0.4931 GB, free: 35.16 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003497/0.4929, allocations: 0.7959 MB / 0.4939 GB, free: 34.93 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001337/0.4942, allocations: 336.7 kB / 0.4942 GB, free: 34.91 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.005925/0.5002, allocations: 3.327 MB / 0.4975 GB, free: 34.19 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00327/0.5034, allocations: 2.06 MB / 0.4995 GB, free: 33.86 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002869/0.5063, allocations: 1.125 MB / 0.5006 GB, free: 33.6 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002331/0.5087, allocations: 1.597 MB / 0.5021 GB, free: 33.3 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003623/0.5091, allocations: 171.8 kB / 0.5023 GB, free: 33.3 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009125/0.51, allocations: 260.8 kB / 0.5026 GB, free: 33.29 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001056/0.511, allocations: 0.908 MB / 0.5034 GB, free: 33.17 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001008/0.5121, allocations: 0.6262 MB / 0.5041 GB, free: 33.03 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005101/0.5172, allocations: 4.469 MB / 0.5084 GB, free: 32.77 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.727e-06/0.5172, allocations: 4 kB / 0.5084 GB, free: 32.76 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.196e-06/0.5172, allocations: 0 / 0.5084 GB, free: 32.76 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.00015/0.5174, allocations: 0 / 0.5084 GB, free: 32.76 MB / 378.7 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.007956/0.5253, allocations: 3.245 MB / 0.5116 GB, free: 31.32 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.769e-05/0.5254, allocations: 10.12 kB / 0.5116 GB, free: 31.32 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001209/0.5266, allocations: 392.6 kB / 0.512 GB, free: 31.13 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003497/0.5301, allocations: 1.875 MB / 0.5138 GB, free: 30.45 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001871/0.5303, allocations: 223.2 kB / 0.514 GB, free: 30.35 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004061/0.5307, allocations: 284 kB / 0.5143 GB, free: 30.25 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006922/0.5377, allocations: 3.72 MB / 0.5179 GB, free: 28.76 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.845e-05/0.5378, allocations: 6.938 kB / 0.5179 GB, free: 28.76 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002567/0.538, allocations: 112 kB / 0.518 GB, free: 28.67 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001684/0.5382, allocations: 142.9 kB / 0.5182 GB, free: 28.66 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00617/0.5444, allocations: 3.15 MB / 0.5213 GB, free: 27.53 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02096/0.5654, allocations: 11.61 MB / 0.5326 GB, free: 21.38 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004031/0.5695, allocations: 2.183 MB / 0.5347 GB, free: 19.92 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002277/0.5718, allocations: 1.237 MB / 0.5359 GB, free: 19.34 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003391/0.5721, allocations: 212 kB / 0.5361 GB, free: 19.14 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.645e-05/0.5722, allocations: 44.94 kB / 0.5362 GB, free: 19.09 MB / 378.7 MB Notification: Performance of pre-optimization done (n=139): time 3.987e-06/0.5722, allocations: 2.406 kB / 0.5362 GB, free: 19.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=154): time 0.02146/0.5937, allocations: 8.212 MB / 0.5442 GB, free: 14.55 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.714e-05/0.5938, allocations: 71.92 kB / 0.5443 GB, free: 14.48 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004094/0.5979, allocations: 1.921 MB / 0.5461 GB, free: 13.43 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002/0.5981, allocations: 52.2 kB / 0.5462 GB, free: 13.38 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009147/0.5991, allocations: 1.355 MB / 0.5475 GB, free: 12.2 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004919/0.5996, allocations: 0.5223 MB / 0.548 GB, free: 11.74 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.668e-05/0.5997, allocations: 36.62 kB / 0.5481 GB, free: 11.71 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.5998, allocations: 375.4 kB / 0.5484 GB, free: 11.36 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001502/0.6013, allocations: 0.8774 MB / 0.5493 GB, free: 10.92 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001675/0.603, allocations: 1.347 MB / 0.5506 GB, free: 9.883 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001714/0.6048, allocations: 1.092 MB / 0.5517 GB, free: 9.312 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.051e-05/0.6048, allocations: 4.594 kB / 0.5517 GB, free: 9.312 MB / 378.7 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.005017/0.6098, allocations: 2.917 MB / 0.5545 GB, free: 6.855 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.811e-05/0.6098, allocations: 15.95 kB / 0.5545 GB, free: 6.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.021e-05/0.6099, allocations: 12 kB / 0.5545 GB, free: 6.828 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008418/0.6107, allocations: 390.9 kB / 0.5549 GB, free: 6.438 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001523/0.6122, allocations: 447.3 kB / 0.5553 GB, free: 6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004867/0.6171, allocations: 6.205 MB / 0.5614 GB, free: 15.41 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002358/0.6195, allocations: 123.8 kB / 0.5615 GB, free: 15.29 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001767/0.6197, allocations: 71.98 kB / 0.5616 GB, free: 15.22 MB / 394.7 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 (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 2,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002493/0.6222, allocations: 0.9098 MB / 0.5625 GB, free: 14.3 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006874/0.6229, allocations: 205.5 kB / 0.5627 GB, free: 14.1 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005721/0.6286, allocations: 2.903 MB / 0.5655 GB, free: 11.17 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.79e-05/0.6287, allocations: 16 kB / 0.5655 GB, free: 11.16 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.445e-05/0.6287, allocations: 8 kB / 0.5655 GB, free: 11.15 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.98e-05/0.6287, allocations: 7.969 kB / 0.5655 GB, free: 11.14 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01221/0.6409, allocations: 6.16 MB / 0.5715 GB, free: 4.883 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.143e-05/0.641, allocations: 8.094 kB / 0.5716 GB, free: 4.875 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001045/0.6421, allocations: 252.1 kB / 0.5718 GB, free: 4.629 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002149/0.6442, allocations: 0.8047 MB / 0.5726 GB, free: 3.816 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001676/0.6444, allocations: 38.06 kB / 0.5726 GB, free: 3.781 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0126/0.657, allocations: 9.836 MB / 0.5822 GB, free: 9.551 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.6571, allocations: 4 kB / 0.5822 GB, free: 9.547 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007435/0.6645, allocations: 4.172 MB / 0.5863 GB, free: 5.297 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001547/0.6661, allocations: 0.4905 MB / 0.5868 GB, free: 4.785 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002708/0.6664, allocations: 37.89 kB / 0.5868 GB, free: 4.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001106/0.6675, allocations: 99.88 kB / 0.5869 GB, free: 4.652 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003078/0.6678, allocations: 129 kB / 0.587 GB, free: 4.527 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001061/0.6679, allocations: 47.98 kB / 0.5871 GB, free: 4.48 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002365/0.6703, allocations: 1.317 MB / 0.5884 GB, free: 3.141 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.6703, allocations: 0 / 0.5884 GB, free: 3.141 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002592/0.6729, allocations: 0.5742 MB / 0.5889 GB, free: 2.566 MB / 410.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 2,(5,100.0%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004176/0.6733, allocations: 164.2 kB / 0.5891 GB, free: 2.395 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004673/0.678, allocations: 2.627 MB / 0.5916 GB, free: 15.71 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.024e-06/0.6781, allocations: 4.938 kB / 0.5916 GB, free: 15.71 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002684/0.6807, allocations: 1.645 MB / 0.5933 GB, free: 14.03 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00332/0.6841, allocations: 0.4995 MB / 0.5937 GB, free: 13.54 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01306/0.6971, allocations: 6.931 MB / 0.6005 GB, free: 6.52 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002174/0.6994, allocations: 2.186 MB / 0.6026 GB, free: 4.305 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009853/0.7004, allocations: 163.4 kB / 0.6028 GB, free: 4.145 MB / 426.7 MB Notification: Performance of SimCode: time 1.072e-06/0.7004, allocations: 6.016 kB / 0.6028 GB, free: 4.141 MB / 426.7 MB Notification: Performance of Templates: time 0.3224/1.023, allocations: 84.58 MB / 0.6854 GB, free: 158.3 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Electrical/Machines/SMPM_VoltageSourceWithLosses/SMPM_VoltageSourceWithLosses.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches