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: 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_4.0.0_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_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001428/0.001428, allocations: 117.2 kB / 17.78 MB, free: 5.277 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.001546/0.001546, allocations: 184.2 kB / 18.71 MB, free: 4.359 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.475/1.475, allocations: 222.9 MB / 242.4 MB, free: 15.18 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.2369/0.2369, allocations: 44.18 MB / 336.7 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 59.91 kB / 470.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4555/0.4568, allocations: 60.83 MB / 0.5189 GB, free: 3.598 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01358/0.4704, allocations: 11.68 MB / 0.5303 GB, free: 11.25 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009893/0.4804, allocations: 3.889 MB / 0.5341 GB, free: 8.035 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00314/0.4835, allocations: 77.69 kB / 0.5342 GB, free: 8.012 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002829/0.4865, allocations: 0.8665 MB / 0.535 GB, free: 7.344 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003937/0.4904, allocations: 0.9541 MB / 0.536 GB, free: 6.535 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00154/0.492, allocations: 0.5069 MB / 0.5364 GB, free: 6.09 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005208/0.4972, allocations: 3.331 MB / 0.5397 GB, free: 4.066 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004752/0.502, allocations: 3.047 MB / 0.5427 GB, free: 2.504 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004158/0.5061, allocations: 1.565 MB / 0.5442 GB, free: 1.566 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004239/0.5104, allocations: 2.004 MB / 0.5462 GB, free: 12 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001207/0.5116, allocations: 432 kB / 0.5466 GB, free: 15.59 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001789/0.5134, allocations: 0.531 MB / 0.5471 GB, free: 15.06 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001303/0.5148, allocations: 1.223 MB / 0.5483 GB, free: 13.83 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003024/0.5178, allocations: 1.901 MB / 0.5501 GB, free: 11.92 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007326/0.5251, allocations: 5.582 MB / 0.5556 GB, free: 6.324 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.025e-05/0.5252, allocations: 4 kB / 0.5556 GB, free: 6.32 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.5252, allocations: 0 / 0.5556 GB, free: 6.32 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001913/0.5254, allocations: 0 / 0.5556 GB, free: 6.32 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.01091/0.5363, allocations: 3.837 MB / 0.5593 GB, free: 2.414 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.045e-05/0.5364, allocations: 8.031 kB / 0.5594 GB, free: 2.406 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001311/0.5377, allocations: 392.6 kB / 0.5597 GB, free: 2.02 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003944/0.5417, allocations: 2.079 MB / 0.5618 GB, free: 15.88 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001614/0.5419, allocations: 214 kB / 0.562 GB, free: 15.67 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004118/0.5423, allocations: 295.7 kB / 0.5622 GB, free: 15.39 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006771/0.5491, allocations: 3.727 MB / 0.5659 GB, free: 11.59 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.442e-05/0.5492, allocations: 11.92 kB / 0.5659 GB, free: 11.58 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002664/0.5494, allocations: 120 kB / 0.566 GB, free: 11.46 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001356/0.5496, allocations: 137.5 kB / 0.5661 GB, free: 11.32 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005359/0.5549, allocations: 3.172 MB / 0.5692 GB, free: 8.141 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01852/0.5735, allocations: 11.44 MB / 0.5804 GB, free: 12.38 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00395/0.5775, allocations: 2.161 MB / 0.5825 GB, free: 10.11 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001922/0.5794, allocations: 1.226 MB / 0.5837 GB, free: 8.883 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003158/0.5798, allocations: 211.5 kB / 0.5839 GB, free: 8.637 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.876e-05/0.5798, allocations: 55.81 kB / 0.584 GB, free: 8.574 MB / 446.1 MB Notification: Performance of pre-optimization done (n=139): time 3.657e-06/0.5798, allocations: 0 / 0.584 GB, free: 8.574 MB / 446.1 MB Notification: Performance of matching and sorting (n=154): time 0.01804/0.5979, allocations: 7.873 MB / 0.5917 GB, free: 0.6289 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.886e-05/0.5979, allocations: 68.72 kB / 0.5917 GB, free: 0.5508 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003091/0.601, allocations: 1.937 MB / 0.5936 GB, free: 14.57 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001522/0.6012, allocations: 53.7 kB / 0.5937 GB, free: 14.51 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001105/0.6023, allocations: 1.366 MB / 0.595 GB, free: 13.13 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005263/0.6029, allocations: 0.5198 MB / 0.5955 GB, free: 12.6 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000532/0.6034, allocations: 323.3 kB / 0.5958 GB, free: 12.28 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.6035, allocations: 305.1 kB / 0.5961 GB, free: 11.98 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001481/0.605, allocations: 0.8862 MB / 0.597 GB, free: 11.09 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001824/0.6069, allocations: 1.344 MB / 0.5983 GB, free: 9.551 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003279/0.6102, allocations: 2.385 MB / 0.6006 GB, free: 6.977 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.175e-06/0.6102, allocations: 4 kB / 0.6006 GB, free: 6.973 MB / 462.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.005026/0.6152, allocations: 2.936 MB / 0.6035 GB, free: 3.996 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.402e-05/0.6153, allocations: 19.92 kB / 0.6035 GB, free: 3.977 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.969e-05/0.6153, allocations: 12 kB / 0.6035 GB, free: 3.965 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008741/0.6162, allocations: 391.5 kB / 0.6039 GB, free: 3.57 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001678/0.6178, allocations: 455.2 kB / 0.6043 GB, free: 3.125 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006635/0.6245, allocations: 6.745 MB / 0.6109 GB, free: 11.96 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001954/0.6265, allocations: 123.8 kB / 0.611 GB, free: 11.84 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001494/0.6266, allocations: 75.98 kB / 0.6111 GB, free: 11.77 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.001645/0.6283, allocations: 0.8993 MB / 0.612 GB, free: 10.86 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003755/0.6287, allocations: 221.3 kB / 0.6122 GB, free: 10.64 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005138/0.6338, allocations: 2.911 MB / 0.615 GB, free: 7.715 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.39e-05/0.6339, allocations: 16 kB / 0.6151 GB, free: 7.699 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.757e-05/0.6339, allocations: 8 kB / 0.6151 GB, free: 7.691 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.544e-05/0.6339, allocations: 7.969 kB / 0.6151 GB, free: 7.684 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01006/0.644, allocations: 6.123 MB / 0.621 GB, free: 1.43 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.185e-05/0.644, allocations: 12.03 kB / 0.6211 GB, free: 1.418 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001053/0.6451, allocations: 243.6 kB / 0.6213 GB, free: 1.18 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002007/0.6471, allocations: 0.8007 MB / 0.6221 GB, free: 380 kB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001183/0.6472, allocations: 47.97 kB / 0.6221 GB, free: 332 kB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01384/0.6611, allocations: 10.75 MB / 0.6326 GB, free: 5.145 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.417e-06/0.6611, allocations: 8 kB / 0.6326 GB, free: 5.137 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008374/0.6695, allocations: 4.18 MB / 0.6367 GB, free: 0.8789 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001758/0.6713, allocations: 486.4 kB / 0.6372 GB, free: 392 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007491/0.6721, allocations: 35.98 kB / 0.6372 GB, free: 356 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001876/0.674, allocations: 91.89 kB / 0.6373 GB, free: 264 kB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004627/0.6745, allocations: 125 kB / 0.6374 GB, free: 140 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001348/0.6746, allocations: 47.98 kB / 0.6375 GB, free: 92 kB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004085/0.6787, allocations: 1.336 MB / 0.6388 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.9e-07/0.6787, allocations: 0 / 0.6388 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.00388/0.6826, allocations: 0.5742 MB / 0.6393 GB, free: 14.16 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.0005283/0.6832, allocations: 199 kB / 0.6395 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.004824/0.688, allocations: 2.65 MB / 0.6421 GB, free: 11.24 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.015e-06/0.688, allocations: 0 / 0.6421 GB, free: 11.24 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002686/0.6907, allocations: 1.632 MB / 0.6437 GB, free: 9.574 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003873/0.6946, allocations: 0.5408 MB / 0.6442 GB, free: 9.043 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01127/0.7059, allocations: 5.738 MB / 0.6498 GB, free: 3.23 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003615/0.7096, allocations: 2.221 MB / 0.652 GB, free: 0.9766 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002552/0.7121, allocations: 461.7 kB / 0.6524 GB, free: 0.5234 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001166/0.7133, allocations: 163.4 kB / 0.6526 GB, free: 372 kB / 0.4981 GB Notification: Performance of SimCode: time 4.559e-06/0.7134, allocations: 0 / 0.6526 GB, free: 372 kB / 0.4981 GB Notification: Performance of Templates: time 0.07078/0.7842, allocations: 33.42 MB / 0.6852 GB, free: 15.2 MB / 0.545 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.makefile (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 & ./ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches