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.0009624/0.0009625, allocations: 95.75 kB / 16.98 MB, free: 6.402 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.00117/0.00117, allocations: 183.7 kB / 17.87 MB, free: 5.957 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.444/1.444, allocations: 223.2 MB / 241.8 MB, free: 14.62 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.2051/0.2051, allocations: 44.22 MB / 337.1 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003149/0.000315, allocations: 8 kB / 409.5 MB, free: 27.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1479/0.1482, allocations: 61.92 MB / 471.4 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01087/0.1591, allocations: 9.528 MB / 481 MB, free: 4.168 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007239/0.1664, allocations: 3.765 MB / 484.7 MB, free: 400 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001624/0.1681, allocations: 63.69 kB / 484.8 MB, free: 336 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002179/0.1703, allocations: 0.719 MB / 485.5 MB, free: 15.61 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003472/0.1737, allocations: 0.8529 MB / 486.4 MB, free: 14.75 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001181/0.1749, allocations: 331.6 kB / 486.7 MB, free: 14.43 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003814/0.1788, allocations: 2.154 MB / 488.8 MB, free: 12.27 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002958/0.1817, allocations: 2.112 MB / 491 MB, free: 10.12 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001782/0.1835, allocations: 1.055 MB / 492 MB, free: 9.066 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002077/0.1856, allocations: 1.409 MB / 493.4 MB, free: 7.652 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004705/0.1861, allocations: 164 kB / 493.6 MB, free: 7.492 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008481/0.187, allocations: 251.8 kB / 493.8 MB, free: 7.246 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009417/0.1879, allocations: 0.8685 MB / 494.7 MB, free: 6.375 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008556/0.1888, allocations: 0.6289 MB / 495.3 MB, free: 5.738 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004753/0.1936, allocations: 4.422 MB / 499.7 MB, free: 1.305 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.1936, allocations: 0 / 499.7 MB, free: 1.305 MB / 366.1 MB Notification: Performance of FrontEnd: time 5.661e-06/0.1936, allocations: 0 / 499.7 MB, free: 1.305 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001924/0.1938, allocations: 4 kB / 499.8 MB, free: 1.301 MB / 366.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.007645/0.2015, allocations: 3.237 MB / 0.4912 GB, free: 14 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.963e-05/0.2015, allocations: 8.031 kB / 0.4912 GB, free: 13.99 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001158/0.2027, allocations: 399.5 kB / 0.4916 GB, free: 13.59 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004196/0.2069, allocations: 1.989 MB / 0.4935 GB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000199/0.2071, allocations: 221.7 kB / 0.4937 GB, free: 11.33 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004801/0.2076, allocations: 291.9 kB / 0.494 GB, free: 11.05 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006632/0.2142, allocations: 3.676 MB / 0.4976 GB, free: 7.301 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.519e-05/0.2143, allocations: 11.84 kB / 0.4976 GB, free: 7.289 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000264/0.2146, allocations: 112 kB / 0.4977 GB, free: 7.18 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001541/0.2148, allocations: 145.5 kB / 0.4979 GB, free: 7.035 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005714/0.2205, allocations: 3.125 MB / 0.5009 GB, free: 3.898 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2516/0.4721, allocations: 11.49 MB / 0.5121 GB, free: 40.45 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003058/0.4752, allocations: 2.114 MB / 0.5142 GB, free: 39.23 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00028/0.4755, allocations: 216.7 kB / 0.5144 GB, free: 39.04 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.356e-05/0.4756, allocations: 45.8 kB / 0.5145 GB, free: 38.99 MB / 382.1 MB Notification: Performance of pre-optimization done (n=139): time 3.316e-06/0.4756, allocations: 7.062 kB / 0.5145 GB, free: 38.99 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.02011/0.4957, allocations: 7.936 MB / 0.5222 GB, free: 35.85 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.977e-05/0.4958, allocations: 67.56 kB / 0.5223 GB, free: 35.79 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003491/0.4993, allocations: 1.879 MB / 0.5241 GB, free: 34.75 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000333/0.4996, allocations: 53.61 kB / 0.5242 GB, free: 34.7 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009549/0.5006, allocations: 1.367 MB / 0.5255 GB, free: 33.5 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004194/0.501, allocations: 0.5234 MB / 0.526 GB, free: 33.05 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.991e-05/0.5011, allocations: 35.75 kB / 0.526 GB, free: 33.02 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001103/0.5012, allocations: 377.5 kB / 0.5264 GB, free: 32.67 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001202/0.5025, allocations: 0.8716 MB / 0.5273 GB, free: 32.23 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001413/0.5039, allocations: 1.331 MB / 0.5286 GB, free: 31.2 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001508/0.5054, allocations: 1.074 MB / 0.5296 GB, free: 30.64 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.564e-05/0.5054, allocations: 7.594 kB / 0.5296 GB, free: 30.64 MB / 382.1 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.004563/0.51, allocations: 2.872 MB / 0.5324 GB, free: 29.1 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.607e-05/0.51, allocations: 13.06 kB / 0.5324 GB, free: 29.1 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.173e-05/0.5101, allocations: 14.62 kB / 0.5324 GB, free: 29.1 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007843/0.5109, allocations: 375.5 kB / 0.5328 GB, free: 28.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001646/0.5125, allocations: 455.5 kB / 0.5332 GB, free: 28.79 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004698/0.5172, allocations: 6.093 MB / 0.5392 GB, free: 23.19 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002349/0.5196, allocations: 119.8 kB / 0.5393 GB, free: 23.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002591/0.5199, allocations: 75.98 kB / 0.5394 GB, free: 23 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * 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 (210): * Single equations (assignments): 206 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 2,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002156/0.5221, allocations: 0.9129 MB / 0.5403 GB, free: 22.08 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006617/0.5227, allocations: 201.5 kB / 0.5405 GB, free: 21.88 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004424/0.5272, allocations: 2.879 MB / 0.5433 GB, free: 18.98 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.227e-05/0.5272, allocations: 16 kB / 0.5433 GB, free: 18.96 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.17e-05/0.5272, allocations: 11.98 kB / 0.5433 GB, free: 18.95 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.424e-05/0.5272, allocations: 3.984 kB / 0.5433 GB, free: 18.95 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01029/0.5375, allocations: 6.052 MB / 0.5492 GB, free: 12.81 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.169e-05/0.5376, allocations: 4 kB / 0.5492 GB, free: 12.81 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000991/0.5386, allocations: 235.7 kB / 0.5494 GB, free: 12.58 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001758/0.5404, allocations: 0.8078 MB / 0.5502 GB, free: 11.76 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.988e-05/0.5405, allocations: 39.98 kB / 0.5503 GB, free: 11.72 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009929/0.5504, allocations: 10.12 MB / 0.5601 GB, free: 1.203 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.611e-06/0.5505, allocations: 4.219 kB / 0.5602 GB, free: 1.199 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007194/0.5577, allocations: 4.363 MB / 0.5644 GB, free: 12.63 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001569/0.5593, allocations: 494.3 kB / 0.5649 GB, free: 12.12 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003764/0.5597, allocations: 35.98 kB / 0.5649 GB, free: 12.09 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001127/0.5608, allocations: 95.89 kB / 0.565 GB, free: 12 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003039/0.5611, allocations: 125 kB / 0.5651 GB, free: 11.88 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001047/0.5612, allocations: 47.98 kB / 0.5652 GB, free: 11.83 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00214/0.5634, allocations: 1.279 MB / 0.5664 GB, free: 10.53 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5634, allocations: 0 / 0.5664 GB, free: 10.53 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002655/0.5661, allocations: 0.5664 MB / 0.567 GB, free: 9.961 MB / 398.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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 2,(5,84.0%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003956/0.5665, allocations: 169.5 kB / 0.5671 GB, free: 9.793 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004151/0.5706, allocations: 2.586 MB / 0.5697 GB, free: 7.148 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.953e-06/0.5707, allocations: 0 / 0.5697 GB, free: 7.148 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002739/0.5734, allocations: 1.666 MB / 0.5713 GB, free: 5.445 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002642/0.5761, allocations: 0.4931 MB / 0.5718 GB, free: 4.953 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01095/0.587, allocations: 6.826 MB / 0.5784 GB, free: 14.05 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002151/0.5892, allocations: 2.268 MB / 0.5807 GB, free: 11.75 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001985/0.5913, allocations: 473.6 kB / 0.5811 GB, free: 11.29 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004781/0.5917, allocations: 155.4 kB / 0.5813 GB, free: 11.14 MB / 414.1 MB Notification: Performance of SimCode: time 3.607e-06/0.5918, allocations: 0 / 0.5813 GB, free: 11.14 MB / 414.1 MB Notification: Performance of Templates: time 0.0579/0.6497, allocations: 29.4 MB / 0.61 GB, free: 14.01 MB / 446.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","../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches