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.001823/0.001823, allocations: 104.1 kB / 17.64 MB, free: 5.48 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.001892/0.001892, allocations: 192 kB / 18.55 MB, free: 4.566 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.388/1.388, allocations: 222.9 MB / 242.2 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.2217/0.2217, allocations: 44.19 MB / 336.6 MB, free: 2.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001349/0.001349, allocations: 65.23 kB / 408.4 MB, free: 27.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1148, allocations: 60.82 MB / 469.2 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01305/0.1279, allocations: 11.68 MB / 480.9 MB, free: 2.652 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007753/0.1356, allocations: 3.894 MB / 484.8 MB, free: 14.74 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003429/0.1391, allocations: 75.69 kB / 484.9 MB, free: 14.67 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002677/0.1419, allocations: 0.8575 MB / 485.8 MB, free: 13.8 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003361/0.1453, allocations: 0.9629 MB / 486.7 MB, free: 12.84 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001287/0.1465, allocations: 0.5071 MB / 487.2 MB, free: 12.33 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004315/0.1509, allocations: 3.317 MB / 490.5 MB, free: 9.004 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003531/0.1544, allocations: 3.033 MB / 493.6 MB, free: 5.906 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002473/0.1569, allocations: 1.554 MB / 495.1 MB, free: 4.348 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003949/0.1609, allocations: 2.005 MB / 497.1 MB, free: 2.336 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000993/0.1619, allocations: 431.9 kB / 497.6 MB, free: 1.914 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00142/0.1633, allocations: 0.5272 MB / 498.1 MB, free: 1.387 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001309/0.1646, allocations: 1.227 MB / 499.3 MB, free: 160 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002582/0.1672, allocations: 1.901 MB / 0.4895 GB, free: 14.25 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006972/0.1742, allocations: 5.499 MB / 0.4948 GB, free: 8.73 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.958e-06/0.1743, allocations: 0 / 0.4948 GB, free: 8.73 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.577e-06/0.1743, allocations: 0 / 0.4948 GB, free: 8.73 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002257/0.1745, allocations: 0 / 0.4948 GB, free: 8.73 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.009754/0.1843, allocations: 3.833 MB / 0.4986 GB, free: 4.828 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.325e-05/0.1843, allocations: 12.03 kB / 0.4986 GB, free: 4.816 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001147/0.1855, allocations: 396.4 kB / 0.499 GB, free: 4.426 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004348/0.1899, allocations: 2.016 MB / 0.5009 GB, free: 2.355 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002375/0.1901, allocations: 229.9 kB / 0.5012 GB, free: 2.129 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004825/0.1906, allocations: 287.9 kB / 0.5014 GB, free: 1.848 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2668/0.4574, allocations: 3.725 MB / 0.5051 GB, free: 45.78 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.531e-05/0.4576, allocations: 7.578 kB / 0.5051 GB, free: 45.78 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002978/0.4579, allocations: 115.3 kB / 0.5052 GB, free: 45.69 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001759/0.458, allocations: 143.9 kB / 0.5053 GB, free: 45.68 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006504/0.4646, allocations: 3.173 MB / 0.5084 GB, free: 44.55 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02236/0.487, allocations: 11.57 MB / 0.5197 GB, free: 38.19 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004593/0.4916, allocations: 2.174 MB / 0.5218 GB, free: 36.73 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002068/0.4937, allocations: 1.236 MB / 0.523 GB, free: 36.14 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003218/0.4941, allocations: 208.3 kB / 0.5232 GB, free: 35.94 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.952e-05/0.4941, allocations: 50.62 kB / 0.5233 GB, free: 35.89 MB / 382.1 MB Notification: Performance of pre-optimization done (n=139): time 4.088e-06/0.4941, allocations: 0 / 0.5233 GB, free: 35.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.01591/0.5101, allocations: 7.86 MB / 0.531 GB, free: 31.62 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.439e-05/0.5101, allocations: 68.25 kB / 0.531 GB, free: 31.56 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002587/0.5127, allocations: 1.941 MB / 0.5329 GB, free: 29.86 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000198/0.5129, allocations: 49.7 kB / 0.533 GB, free: 29.8 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006481/0.5136, allocations: 1.37 MB / 0.5343 GB, free: 28.42 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003552/0.514, allocations: 0.5111 MB / 0.5348 GB, free: 27.91 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004473/0.5144, allocations: 331.2 kB / 0.5351 GB, free: 27.59 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.039e-05/0.5145, allocations: 305.1 kB / 0.5354 GB, free: 27.29 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001157/0.5156, allocations: 0.8823 MB / 0.5363 GB, free: 26.4 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001259/0.5169, allocations: 1.344 MB / 0.5376 GB, free: 24.87 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002468/0.5194, allocations: 2.384 MB / 0.5399 GB, free: 22.3 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.025e-06/0.5194, allocations: 7.938 kB / 0.5399 GB, free: 22.29 MB / 382.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.004135/0.5235, allocations: 2.932 MB / 0.5428 GB, free: 19.32 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.602e-05/0.5236, allocations: 12 kB / 0.5428 GB, free: 19.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.113e-05/0.5236, allocations: 15.98 kB / 0.5428 GB, free: 19.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007982/0.5244, allocations: 394.7 kB / 0.5432 GB, free: 18.89 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001548/0.526, allocations: 459.2 kB / 0.5436 GB, free: 18.45 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004527/0.5305, allocations: 6.75 MB / 0.5502 GB, free: 11.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002/0.5325, allocations: 125.5 kB / 0.5503 GB, free: 11.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001413/0.5327, allocations: 75.98 kB / 0.5504 GB, free: 11.1 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.001723/0.5344, allocations: 0.9071 MB / 0.5513 GB, free: 10.18 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004157/0.5348, allocations: 205.4 kB / 0.5515 GB, free: 9.98 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004296/0.5392, allocations: 2.918 MB / 0.5544 GB, free: 7.035 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.111e-05/0.5392, allocations: 16 kB / 0.5544 GB, free: 7.02 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.296e-06/0.5392, allocations: 4 kB / 0.5544 GB, free: 7.016 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.315e-05/0.5392, allocations: 11.97 kB / 0.5544 GB, free: 7.004 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009361/0.5486, allocations: 6.148 MB / 0.5604 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.016e-05/0.5486, allocations: 0 / 0.5604 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009759/0.5496, allocations: 240.1 kB / 0.5606 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00197/0.5516, allocations: 0.8132 MB / 0.5614 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001239/0.5517, allocations: 43.92 kB / 0.5615 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0138/0.5656, allocations: 10.76 MB / 0.572 GB, free: 4.48 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.921e-05/0.5656, allocations: 11.92 kB / 0.572 GB, free: 4.469 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007488/0.5731, allocations: 4.159 MB / 0.576 GB, free: 244 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001595/0.5748, allocations: 486.5 kB / 0.5765 GB, free: 15.74 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003852/0.5752, allocations: 43.98 kB / 0.5765 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001112/0.5763, allocations: 87.89 kB / 0.5766 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003338/0.5766, allocations: 125 kB / 0.5767 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.802e-05/0.5768, allocations: 51.98 kB / 0.5768 GB, free: 15.43 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002075/0.5788, allocations: 1.336 MB / 0.5781 GB, free: 14.07 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5788, allocations: 0 / 0.5781 GB, free: 14.07 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002262/0.5811, allocations: 0.5768 MB / 0.5787 GB, free: 13.5 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.0004066/0.5815, allocations: 204.9 kB / 0.5789 GB, free: 13.3 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005707/0.5872, allocations: 3.292 MB / 0.5821 GB, free: 9.961 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.011e-05/0.5873, allocations: 4.188 kB / 0.5821 GB, free: 9.957 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00226/0.5895, allocations: 1.637 MB / 0.5837 GB, free: 8.285 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002627/0.5922, allocations: 0.5357 MB / 0.5842 GB, free: 7.754 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009391/0.6016, allocations: 5.825 MB / 0.5899 GB, free: 1.875 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002136/0.6038, allocations: 2.214 MB / 0.5921 GB, free: 15.63 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001956/0.6057, allocations: 469.7 kB / 0.5925 GB, free: 15.17 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004536/0.6062, allocations: 151.4 kB / 0.5926 GB, free: 15.02 MB / 430.1 MB Notification: Performance of SimCode: time 1.082e-06/0.6062, allocations: 4 kB / 0.5926 GB, free: 15.02 MB / 430.1 MB Notification: Performance of Templates: time 0.06482/0.671, allocations: 32.84 MB / 0.6247 GB, free: 14.47 MB / 462.1 MB 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