Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="ModelicaTest_trunk_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.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00106/0.00106, allocations: 122.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001205/0.001205, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.407/1.407, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.246/0.246, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 79.86 kB / 481.3 MB, free: 4.078 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4229/0.4243, allocations: 62.43 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01553/0.4399, allocations: 11.72 MB / 0.5424 GB, free: 4.344 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01079/0.4508, allocations: 3.971 MB / 0.5463 GB, free: 1.027 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003896/0.4547, allocations: 77.34 kB / 0.5464 GB, free: 1.004 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002876/0.4577, allocations: 0.8593 MB / 0.5472 GB, free: 352 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00471/0.4624, allocations: 0.9584 MB / 0.5482 GB, free: 15.53 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001579/0.464, allocations: 0.5164 MB / 0.5487 GB, free: 15.07 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005423/0.4694, allocations: 3.344 MB / 0.5519 GB, free: 12.24 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003652/0.4731, allocations: 3.033 MB / 0.5549 GB, free: 9.141 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002661/0.4758, allocations: 1.577 MB / 0.5564 GB, free: 7.559 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002846/0.4786, allocations: 2.005 MB / 0.5584 GB, free: 5.547 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005872/0.4792, allocations: 432 kB / 0.5588 GB, free: 5.125 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001138/0.4804, allocations: 0.535 MB / 0.5593 GB, free: 4.59 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001203/0.4816, allocations: 1.227 MB / 0.5605 GB, free: 3.359 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002181/0.4838, allocations: 1.898 MB / 0.5624 GB, free: 1.453 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00618/0.49, allocations: 5.59 MB / 0.5678 GB, free: 11.85 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.478e-06/0.49, allocations: 0 / 0.5678 GB, free: 11.85 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.226e-06/0.49, allocations: 0 / 0.5678 GB, free: 11.85 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001533/0.4902, allocations: 4 kB / 0.5678 GB, free: 11.84 MB / 430.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.01069/0.5009, allocations: 3.841 MB / 0.5716 GB, free: 7.934 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.223e-05/0.5009, allocations: 12.03 kB / 0.5716 GB, free: 7.922 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001289/0.5022, allocations: 404.5 kB / 0.572 GB, free: 7.523 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004668/0.5069, allocations: 2.087 MB / 0.574 GB, free: 5.383 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001865/0.5071, allocations: 218 kB / 0.5742 GB, free: 5.168 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005535/0.5077, allocations: 287.8 kB / 0.5745 GB, free: 4.887 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007781/0.5155, allocations: 3.731 MB / 0.5781 GB, free: 1.086 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.177e-05/0.5156, allocations: 15.91 kB / 0.5782 GB, free: 1.07 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000271/0.5159, allocations: 116 kB / 0.5783 GB, free: 0.957 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003287/0.5162, allocations: 141.5 kB / 0.5784 GB, free: 0.8164 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006063/0.5223, allocations: 3.176 MB / 0.5815 GB, free: 13.63 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02581/0.5482, allocations: 11.44 MB / 0.5927 GB, free: 1.887 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003976/0.5522, allocations: 2.165 MB / 0.5948 GB, free: 15.61 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0022/0.5544, allocations: 1.223 MB / 0.596 GB, free: 14.38 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003767/0.5548, allocations: 207.5 kB / 0.5962 GB, free: 14.14 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.026e-05/0.5549, allocations: 51.88 kB / 0.5962 GB, free: 14.08 MB / 462.1 MB Notification: Performance of pre-optimization done (n=139): time 3.396e-06/0.5549, allocations: 0 / 0.5962 GB, free: 14.08 MB / 462.1 MB Notification: Performance of matching and sorting (n=154): time 0.01857/0.5735, allocations: 7.864 MB / 0.6039 GB, free: 6.156 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.629e-05/0.5736, allocations: 76.66 kB / 0.604 GB, free: 6.07 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003624/0.5772, allocations: 1.953 MB / 0.6059 GB, free: 4.074 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002853/0.5775, allocations: 49.7 kB / 0.6059 GB, free: 4.02 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001141/0.5787, allocations: 1.37 MB / 0.6073 GB, free: 2.633 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005962/0.5793, allocations: 0.5159 MB / 0.6078 GB, free: 2.109 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005258/0.5798, allocations: 319.3 kB / 0.6081 GB, free: 1.789 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000124/0.58, allocations: 301.1 kB / 0.6084 GB, free: 1.492 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001434/0.5814, allocations: 0.8901 MB / 0.6092 GB, free: 0.6016 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001708/0.5831, allocations: 1.348 MB / 0.6106 GB, free: 15.06 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003358/0.5865, allocations: 2.385 MB / 0.6129 GB, free: 12.48 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.162e-06/0.5865, allocations: 4 kB / 0.6129 GB, free: 12.48 MB / 478.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.005178/0.5917, allocations: 2.94 MB / 0.6158 GB, free: 9.5 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.759e-05/0.5918, allocations: 12 kB / 0.6158 GB, free: 9.488 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.665e-05/0.5918, allocations: 12 kB / 0.6158 GB, free: 9.477 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009151/0.5927, allocations: 395.5 kB / 0.6162 GB, free: 9.078 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00166/0.5944, allocations: 443.3 kB / 0.6166 GB, free: 8.645 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006872/0.6013, allocations: 6.765 MB / 0.6232 GB, free: 1.465 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002035/0.6033, allocations: 131.6 kB / 0.6233 GB, free: 1.336 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002034/0.6035, allocations: 72.06 kB / 0.6234 GB, free: 1.266 MB / 478.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.001774/0.6053, allocations: 0.8993 MB / 0.6243 GB, free: 364 kB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006269/0.606, allocations: 209.4 kB / 0.6245 GB, free: 152 kB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005497/0.6115, allocations: 2.915 MB / 0.6273 GB, free: 13.21 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.155e-05/0.6115, allocations: 16 kB / 0.6273 GB, free: 13.19 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.292e-05/0.6116, allocations: 8 kB / 0.6273 GB, free: 13.18 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.684e-05/0.6116, allocations: 7.969 kB / 0.6273 GB, free: 13.18 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01178/0.6234, allocations: 6.131 MB / 0.6333 GB, free: 6.918 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.075e-05/0.6234, allocations: 4 kB / 0.6333 GB, free: 6.914 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001113/0.6245, allocations: 239.6 kB / 0.6336 GB, free: 6.68 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002302/0.6269, allocations: 0.8074 MB / 0.6343 GB, free: 5.863 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001636/0.627, allocations: 43.97 kB / 0.6344 GB, free: 5.82 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01306/0.6401, allocations: 10.75 MB / 0.6449 GB, free: 10.63 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.444e-06/0.6402, allocations: 12 kB / 0.6449 GB, free: 10.62 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007361/0.6475, allocations: 4.172 MB / 0.649 GB, free: 6.375 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001332/0.6489, allocations: 486.4 kB / 0.6494 GB, free: 5.879 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002789/0.6492, allocations: 35.98 kB / 0.6495 GB, free: 5.844 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001072/0.6503, allocations: 91.89 kB / 0.6496 GB, free: 5.754 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003223/0.6506, allocations: 129 kB / 0.6497 GB, free: 5.629 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001074/0.6507, allocations: 47.98 kB / 0.6497 GB, free: 5.582 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.002015/0.6528, allocations: 1.337 MB / 0.651 GB, free: 4.223 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6528, allocations: 0 / 0.651 GB, free: 4.223 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001907/0.6547, allocations: 0.5742 MB / 0.6516 GB, free: 3.648 MB / 0.4981 GB 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.0003956/0.6551, allocations: 202.8 kB / 0.6518 GB, free: 3.438 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.003943/0.659, allocations: 2.654 MB / 0.6544 GB, free: 0.7227 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.71e-06/0.6591, allocations: 2 kB / 0.6544 GB, free: 0.7227 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002411/0.6615, allocations: 1.63 MB / 0.656 GB, free: 15.05 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002694/0.6642, allocations: 0.5396 MB / 0.6565 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009629/0.6738, allocations: 5.747 MB / 0.6621 GB, free: 8.715 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002038/0.6759, allocations: 2.21 MB / 0.6643 GB, free: 6.473 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001728/0.6776, allocations: 465.9 kB / 0.6647 GB, free: 6.016 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005834/0.6782, allocations: 159.4 kB / 0.6649 GB, free: 5.859 MB / 0.5137 GB Notification: Performance of SimCode: time 8.32e-07/0.6783, allocations: 0 / 0.6649 GB, free: 5.859 MB / 0.5137 GB Notification: Performance of Templates: time 0.06317/0.7414, allocations: 34.1 MB / 0.6982 GB, free: 3.996 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & ./ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Machines/SMPM_VoltageSourceWithLosses/SMPM_VoltageSourceWithLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches