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.001075/0.001075, allocations: 93.05 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001516/0.001516, allocations: 201.9 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.521/1.521, allocations: 227.7 MB / 246.8 MB, free: 11.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2606/0.2606, allocations: 46.19 MB / 345.2 MB, free: 11.41 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002962/0.0002962, allocations: 11.98 kB / 419.5 MB, free: 19.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1267/0.127, allocations: 63.55 MB / 483.1 MB, free: 4.176 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01256/0.1396, allocations: 11.03 MB / 494.1 MB, free: 9.102 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009636/0.1493, allocations: 3.86 MB / 498 MB, free: 5.227 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003388/0.1528, allocations: 75.56 kB / 498 MB, free: 5.152 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003043/0.1558, allocations: 0.7535 MB / 498.8 MB, free: 4.395 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004962/0.1608, allocations: 0.8588 MB / 499.7 MB, free: 3.531 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001682/0.1625, allocations: 467.5 kB / 0.4884 GB, free: 3.074 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005127/0.1677, allocations: 3.637 MB / 0.4919 GB, free: 15.43 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003784/0.1715, allocations: 2.557 MB / 0.4944 GB, free: 12.81 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00207/0.1736, allocations: 1.143 MB / 0.4956 GB, free: 11.66 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002769/0.1763, allocations: 1.649 MB / 0.4972 GB, free: 10 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006363/0.177, allocations: 172 kB / 0.4973 GB, free: 9.836 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001142/0.1782, allocations: 291.8 kB / 0.4976 GB, free: 9.551 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001154/0.1793, allocations: 0.9265 MB / 0.4985 GB, free: 8.621 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002211/0.1815, allocations: 1.56 MB / 0.5 GB, free: 7.047 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006048/0.1876, allocations: 5.208 MB / 0.5051 GB, free: 1.82 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.1876, allocations: 0 / 0.5051 GB, free: 1.82 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.275e-06/0.1876, allocations: 0 / 0.5051 GB, free: 1.82 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000129/0.1878, allocations: 0 / 0.5051 GB, free: 1.82 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.2717/0.4595, allocations: 3.22 MB / 0.5083 GB, free: 37.48 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.881e-05/0.4596, allocations: 10.41 kB / 0.5083 GB, free: 37.48 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002411/0.462, allocations: 403.3 kB / 0.5087 GB, free: 37.3 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006509/0.4686, allocations: 2.029 MB / 0.5106 GB, free: 36.7 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004445/0.4691, allocations: 229.1 kB / 0.5109 GB, free: 36.61 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001155/0.4702, allocations: 279.6 kB / 0.5111 GB, free: 36.52 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009763/0.48, allocations: 3.745 MB / 0.5148 GB, free: 35.03 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.101e-05/0.4801, allocations: 13.33 kB / 0.5148 GB, free: 35.02 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002743/0.4804, allocations: 113.9 kB / 0.5149 GB, free: 34.93 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002257/0.4807, allocations: 146.3 kB / 0.515 GB, free: 34.92 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007099/0.4878, allocations: 3.179 MB / 0.5182 GB, free: 33.79 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02217/0.51, allocations: 11.61 MB / 0.5295 GB, free: 26.45 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004326/0.5144, allocations: 2.175 MB / 0.5316 GB, free: 25 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00198/0.5164, allocations: 1.247 MB / 0.5328 GB, free: 24.41 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002776/0.5167, allocations: 202.3 kB / 0.533 GB, free: 24.22 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.11e-05/0.5167, allocations: 55.77 kB / 0.5331 GB, free: 24.16 MB / 382.1 MB Notification: Performance of pre-optimization done (n=139): time 3.256e-06/0.5168, allocations: 0 / 0.5331 GB, free: 24.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.01655/0.5333, allocations: 7.936 MB / 0.5408 GB, free: 17.34 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.011e-05/0.5334, allocations: 64.72 kB / 0.5409 GB, free: 17.26 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003024/0.5364, allocations: 1.949 MB / 0.5428 GB, free: 15.27 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001676/0.5366, allocations: 53.64 kB / 0.5428 GB, free: 15.21 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007957/0.5374, allocations: 1.367 MB / 0.5442 GB, free: 13.83 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004068/0.5378, allocations: 0.5207 MB / 0.5447 GB, free: 13.31 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002033/0.538, allocations: 141.6 kB / 0.5448 GB, free: 13.17 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.921e-05/0.5381, allocations: 303.2 kB / 0.5451 GB, free: 12.87 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001265/0.5394, allocations: 0.8901 MB / 0.546 GB, free: 11.98 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001368/0.5408, allocations: 1.348 MB / 0.5473 GB, free: 10.44 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00261/0.5434, allocations: 2.4 MB / 0.5496 GB, free: 7.852 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.676e-06/0.5434, allocations: 4 kB / 0.5496 GB, free: 7.848 MB / 382.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.004476/0.5479, allocations: 2.94 MB / 0.5525 GB, free: 4.867 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.055e-05/0.548, allocations: 12 kB / 0.5525 GB, free: 4.855 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.599e-05/0.548, allocations: 12 kB / 0.5525 GB, free: 4.844 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000844/0.5488, allocations: 388.8 kB / 0.5529 GB, free: 4.453 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001561/0.5504, allocations: 455.2 kB / 0.5533 GB, free: 4.008 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005574/0.556, allocations: 6.22 MB / 0.5594 GB, free: 13.39 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002717/0.5588, allocations: 131.7 kB / 0.5595 GB, free: 13.27 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002911/0.5591, allocations: 71.98 kB / 0.5596 GB, free: 13.2 MB / 398.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.002433/0.5615, allocations: 0.9033 MB / 0.5605 GB, free: 12.28 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006194/0.5621, allocations: 209.4 kB / 0.5607 GB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005895/0.568, allocations: 2.919 MB / 0.5635 GB, free: 9.137 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.795e-05/0.5681, allocations: 19.94 kB / 0.5636 GB, free: 9.117 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.239e-05/0.5681, allocations: 8 kB / 0.5636 GB, free: 9.109 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.969e-05/0.5681, allocations: 7.969 kB / 0.5636 GB, free: 9.102 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01225/0.5804, allocations: 6.157 MB / 0.5696 GB, free: 2.848 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.298e-05/0.5805, allocations: 8.094 kB / 0.5696 GB, free: 2.84 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0011/0.5816, allocations: 243.6 kB / 0.5698 GB, free: 2.602 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00229/0.5839, allocations: 0.7961 MB / 0.5706 GB, free: 1.797 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001425/0.584, allocations: 43.97 kB / 0.5706 GB, free: 1.754 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01263/0.5967, allocations: 9.835 MB / 0.5803 GB, free: 7.52 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.138e-05/0.5967, allocations: 8.062 kB / 0.5803 GB, free: 7.512 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008061/0.6048, allocations: 4.196 MB / 0.5844 GB, free: 3.238 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001574/0.6064, allocations: 0.4905 MB / 0.5848 GB, free: 2.727 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003089/0.6068, allocations: 32 kB / 0.5849 GB, free: 2.695 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001165/0.6079, allocations: 99.88 kB / 0.585 GB, free: 2.598 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003672/0.6083, allocations: 125 kB / 0.5851 GB, free: 2.477 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000105/0.6084, allocations: 51.97 kB / 0.5851 GB, free: 2.426 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002498/0.6109, allocations: 1.341 MB / 0.5864 GB, free: 1.062 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6109, allocations: 0 / 0.5864 GB, free: 1.062 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002638/0.6136, allocations: 0.5779 MB / 0.587 GB, free: 500 kB / 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.0004916/0.6141, allocations: 200.9 kB / 0.5872 GB, free: 296 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004777/0.6189, allocations: 2.633 MB / 0.5898 GB, free: 13.6 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.6189, allocations: 0 / 0.5898 GB, free: 13.6 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002833/0.6217, allocations: 1.638 MB / 0.5914 GB, free: 11.93 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004116/0.6259, allocations: 0.5258 MB / 0.5919 GB, free: 11.41 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01453/0.6404, allocations: 7.161 MB / 0.5989 GB, free: 4.176 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002679/0.6432, allocations: 2.224 MB / 0.601 GB, free: 1.922 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002412/0.6456, allocations: 465.9 kB / 0.6015 GB, free: 1.465 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005885/0.6462, allocations: 155.4 kB / 0.6016 GB, free: 1.312 MB / 430.1 MB Notification: Performance of SimCode: time 2.195e-06/0.6462, allocations: 0 / 0.6016 GB, free: 1.312 MB / 430.1 MB Notification: Performance of Templates: time 0.06587/0.7121, allocations: 31.19 MB / 0.6321 GB, free: 2.371 MB / 462.1 MB 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