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.0009762/0.0009765, allocations: 109.8 kB / 17.78 MB, free: 5.281 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.0009477/0.0009477, allocations: 179.9 kB / 18.71 MB, free: 4.363 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.289/1.289, allocations: 222.9 MB / 242.4 MB, free: 15.1 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.2168/0.2168, allocations: 44.19 MB / 336.7 MB, free: 2.707 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 55.91 kB / 470.5 MB, free: 13.21 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3671/0.3685, allocations: 60.82 MB / 0.5189 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.0143/0.3829, allocations: 11.68 MB / 0.5303 GB, free: 11.26 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009406/0.3923, allocations: 3.892 MB / 0.5341 GB, free: 8.051 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003048/0.3954, allocations: 76.62 kB / 0.5342 GB, free: 8.027 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002355/0.3979, allocations: 0.8707 MB / 0.535 GB, free: 7.355 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003223/0.4011, allocations: 0.9545 MB / 0.536 GB, free: 6.547 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001165/0.4023, allocations: 0.5063 MB / 0.5365 GB, free: 6.102 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004014/0.4063, allocations: 3.338 MB / 0.5397 GB, free: 4.074 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003834/0.4102, allocations: 3.048 MB / 0.5427 GB, free: 2.512 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00334/0.4135, allocations: 1.545 MB / 0.5442 GB, free: 1.59 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004105/0.4176, allocations: 2.009 MB / 0.5462 GB, free: 56 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001225/0.4189, allocations: 428 kB / 0.5466 GB, free: 15.63 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001695/0.4206, allocations: 0.531 MB / 0.5471 GB, free: 15.11 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001258/0.4219, allocations: 1.235 MB / 0.5483 GB, free: 13.87 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002709/0.4246, allocations: 1.894 MB / 0.5501 GB, free: 11.96 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006653/0.4312, allocations: 5.594 MB / 0.5556 GB, free: 6.352 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.568e-06/0.4313, allocations: 4 kB / 0.5556 GB, free: 6.348 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.4313, allocations: 0 / 0.5556 GB, free: 6.348 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001437/0.4315, allocations: 0 / 0.5556 GB, free: 6.348 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.008737/0.4402, allocations: 3.935 MB / 0.5595 GB, free: 2.34 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.235e-05/0.4403, allocations: 8.031 kB / 0.5595 GB, free: 2.332 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001183/0.4415, allocations: 410.5 kB / 0.5599 GB, free: 1.93 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003614/0.4451, allocations: 2.092 MB / 0.5619 GB, free: 15.78 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001649/0.4453, allocations: 218 kB / 0.5621 GB, free: 15.57 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000466/0.4457, allocations: 283.9 kB / 0.5624 GB, free: 15.29 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00672/0.4525, allocations: 3.739 MB / 0.566 GB, free: 11.48 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.259e-05/0.4526, allocations: 7.953 kB / 0.566 GB, free: 11.48 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002543/0.4528, allocations: 112 kB / 0.5661 GB, free: 11.37 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001442/0.453, allocations: 145.5 kB / 0.5663 GB, free: 11.22 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005606/0.4586, allocations: 3.168 MB / 0.5694 GB, free: 8.043 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01976/0.4784, allocations: 11.47 MB / 0.5806 GB, free: 12.27 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00392/0.4824, allocations: 2.173 MB / 0.5827 GB, free: 9.984 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002062/0.4845, allocations: 1.226 MB / 0.5839 GB, free: 8.758 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003168/0.4848, allocations: 203.5 kB / 0.5841 GB, free: 8.52 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.102e-05/0.4848, allocations: 59.8 kB / 0.5841 GB, free: 8.453 MB / 446.1 MB Notification: Performance of pre-optimization done (n=139): time 2.895e-06/0.4849, allocations: 4 kB / 0.5842 GB, free: 8.449 MB / 446.1 MB Notification: Performance of matching and sorting (n=154): time 0.01655/0.5014, allocations: 7.91 MB / 0.5919 GB, free: 480 kB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.744e-05/0.5015, allocations: 76.7 kB / 0.5919 GB, free: 392 kB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002719/0.5042, allocations: 1.933 MB / 0.5938 GB, free: 14.4 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001122/0.5043, allocations: 57.64 kB / 0.5939 GB, free: 14.34 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009173/0.5053, allocations: 1.401 MB / 0.5953 GB, free: 12.93 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003885/0.5057, allocations: 0.5461 MB / 0.5958 GB, free: 12.38 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000487/0.5062, allocations: 319.5 kB / 0.5961 GB, free: 12.06 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.255e-05/0.5063, allocations: 305.1 kB / 0.5964 GB, free: 11.76 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001312/0.5076, allocations: 0.8901 MB / 0.5973 GB, free: 10.87 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001605/0.5092, allocations: 1.344 MB / 0.5986 GB, free: 9.328 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00314/0.5123, allocations: 2.385 MB / 0.6009 GB, free: 6.754 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.474e-06/0.5124, allocations: 4 kB / 0.6009 GB, free: 6.75 MB / 462.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.005007/0.5174, allocations: 2.941 MB / 0.6038 GB, free: 3.77 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.513e-05/0.5174, allocations: 15.94 kB / 0.6038 GB, free: 3.754 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.171e-05/0.5175, allocations: 12.41 kB / 0.6038 GB, free: 3.742 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009573/0.5184, allocations: 399.1 kB / 0.6042 GB, free: 3.34 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001552/0.52, allocations: 447.3 kB / 0.6046 GB, free: 2.902 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006228/0.5262, allocations: 6.757 MB / 0.6112 GB, free: 11.73 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001744/0.528, allocations: 127.9 kB / 0.6113 GB, free: 11.61 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001308/0.5282, allocations: 68 kB / 0.6114 GB, free: 11.54 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.001597/0.5298, allocations: 0.9071 MB / 0.6123 GB, free: 10.62 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004221/0.5302, allocations: 222.5 kB / 0.6125 GB, free: 10.4 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004908/0.5351, allocations: 2.915 MB / 0.6153 GB, free: 7.469 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.157e-05/0.5351, allocations: 16 kB / 0.6154 GB, free: 7.453 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.906e-06/0.5351, allocations: 4 kB / 0.6154 GB, free: 7.449 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.537e-05/0.5352, allocations: 15.97 kB / 0.6154 GB, free: 7.434 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01072/0.5459, allocations: 6.119 MB / 0.6213 GB, free: 1.184 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.151e-05/0.546, allocations: 11.94 kB / 0.6214 GB, free: 1.172 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001022/0.547, allocations: 235.6 kB / 0.6216 GB, free: 0.9414 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002169/0.5492, allocations: 0.8042 MB / 0.6224 GB, free: 132 kB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001374/0.5493, allocations: 39.98 kB / 0.6224 GB, free: 92 kB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01174/0.5611, allocations: 10.77 MB / 0.6329 GB, free: 4.895 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.651e-06/0.5611, allocations: 7.938 kB / 0.6329 GB, free: 4.887 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006391/0.5675, allocations: 4.186 MB / 0.637 GB, free: 0.625 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001039/0.5686, allocations: 491.5 kB / 0.6375 GB, free: 128 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002671/0.5688, allocations: 43.98 kB / 0.6375 GB, free: 84 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001029/0.5699, allocations: 95.95 kB / 0.6376 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002834/0.5702, allocations: 125 kB / 0.6377 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001037/0.5703, allocations: 43.98 kB / 0.6378 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001844/0.5721, allocations: 1.34 MB / 0.6391 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5722, allocations: 4 kB / 0.6391 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.00184/0.574, allocations: 0.5742 MB / 0.6397 GB, free: 13.88 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.0003995/0.5744, allocations: 190.8 kB / 0.6398 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.003746/0.5782, allocations: 2.647 MB / 0.6424 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.113e-06/0.5782, allocations: 4.938 kB / 0.6424 GB, free: 10.97 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002229/0.5804, allocations: 1.653 MB / 0.644 GB, free: 9.285 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002333/0.5828, allocations: 0.5292 MB / 0.6446 GB, free: 8.758 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008667/0.5914, allocations: 5.838 MB / 0.6503 GB, free: 2.848 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001794/0.5933, allocations: 2.206 MB / 0.6524 GB, free: 0.6094 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001513/0.5948, allocations: 469.7 kB / 0.6529 GB, free: 152 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004487/0.5952, allocations: 147.4 kB / 0.653 GB, free: 4 kB / 0.4981 GB Notification: Performance of SimCode: time 1.932e-05/0.5953, allocations: 4 kB / 0.653 GB, free: 0 / 0.4981 GB Notification: Performance of Templates: time 0.05803/0.6533, allocations: 33.43 MB / 0.6857 GB, free: 14.82 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