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.001081/0.001081, allocations: 106.9 kB / 17.33 MB, free: 5.984 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.001067/0.001067, allocations: 193.3 kB / 18.25 MB, free: 5.074 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.377/1.377, allocations: 222.9 MB / 241.9 MB, free: 15.38 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.2237/0.2237, allocations: 44.18 MB / 336.2 MB, free: 2.941 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 60.94 kB / 407.9 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1036, allocations: 60.83 MB / 468.7 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01274/0.1164, allocations: 11.57 MB / 480.3 MB, free: 3.121 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006996/0.1235, allocations: 3.84 MB / 484.1 MB, free: 15.27 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001703/0.1252, allocations: 67.69 kB / 484.2 MB, free: 15.2 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002168/0.1274, allocations: 0.7652 MB / 485 MB, free: 14.43 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002702/0.1301, allocations: 0.8549 MB / 485.8 MB, free: 13.57 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001061/0.1312, allocations: 463.5 kB / 486.3 MB, free: 13.12 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003571/0.1348, allocations: 3.309 MB / 489.6 MB, free: 9.797 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003291/0.1381, allocations: 3.044 MB / 492.6 MB, free: 6.688 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002186/0.1403, allocations: 1.557 MB / 494.2 MB, free: 5.125 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002596/0.1429, allocations: 2.036 MB / 496.2 MB, free: 3.082 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005657/0.1435, allocations: 432 kB / 496.6 MB, free: 2.66 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000925/0.1444, allocations: 0.5311 MB / 497.2 MB, free: 2.129 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001093/0.1455, allocations: 1.231 MB / 498.4 MB, free: 0.8945 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001807/0.1474, allocations: 1.894 MB / 0.4886 GB, free: 14.99 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004747/0.1521, allocations: 5.507 MB / 0.4939 GB, free: 9.469 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.1521, allocations: 0 / 0.4939 GB, free: 9.469 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1522, allocations: 0 / 0.4939 GB, free: 9.469 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.26e-05/0.1522, allocations: 0 / 0.4939 GB, free: 9.469 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.007434/0.1597, allocations: 3.833 MB / 0.4977 GB, free: 5.566 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.1597, allocations: 12.03 kB / 0.4977 GB, free: 5.555 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009665/0.1607, allocations: 392.6 kB / 0.4981 GB, free: 5.168 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003147/0.1639, allocations: 2.024 MB / 0.5 GB, free: 3.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001987/0.1641, allocations: 218 kB / 0.5003 GB, free: 2.875 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000416/0.1645, allocations: 291.9 kB / 0.5005 GB, free: 2.59 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2178/0.3823, allocations: 3.727 MB / 0.5042 GB, free: 45.57 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.649e-05/0.3825, allocations: 7.797 kB / 0.5042 GB, free: 45.57 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003214/0.3828, allocations: 114.3 kB / 0.5043 GB, free: 45.57 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002358/0.3831, allocations: 140.5 kB / 0.5044 GB, free: 45.56 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006691/0.3897, allocations: 3.175 MB / 0.5075 GB, free: 44.55 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0211/0.4109, allocations: 11.58 MB / 0.5188 GB, free: 38.28 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003856/0.4148, allocations: 2.171 MB / 0.521 GB, free: 36.82 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001871/0.4167, allocations: 1.229 MB / 0.5222 GB, free: 36.24 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003261/0.417, allocations: 216.9 kB / 0.5224 GB, free: 36.03 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.843e-05/0.4171, allocations: 49.19 kB / 0.5224 GB, free: 35.98 MB / 382.1 MB Notification: Performance of pre-optimization done (n=139): time 1.55e-05/0.4171, allocations: 0 / 0.5224 GB, free: 35.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.01552/0.4326, allocations: 7.857 MB / 0.5301 GB, free: 31.71 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.083e-05/0.4327, allocations: 71.5 kB / 0.5301 GB, free: 31.65 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002429/0.4351, allocations: 1.941 MB / 0.532 GB, free: 30.6 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00012/0.4353, allocations: 53.23 kB / 0.5321 GB, free: 30.55 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000587/0.4359, allocations: 1.367 MB / 0.5334 GB, free: 29.25 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002636/0.4361, allocations: 0.5192 MB / 0.5339 GB, free: 28.74 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004275/0.4366, allocations: 323.3 kB / 0.5342 GB, free: 28.42 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.868e-05/0.4366, allocations: 305.1 kB / 0.5345 GB, free: 28.12 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001132/0.4378, allocations: 0.8887 MB / 0.5354 GB, free: 27.23 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00126/0.439, allocations: 1.344 MB / 0.5367 GB, free: 25.7 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002517/0.4416, allocations: 2.383 MB / 0.539 GB, free: 23.12 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.055e-06/0.4416, allocations: 7.938 kB / 0.5391 GB, free: 23.12 MB / 382.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.004009/0.4456, allocations: 2.936 MB / 0.5419 GB, free: 20.14 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.355e-05/0.4456, allocations: 12 kB / 0.5419 GB, free: 20.13 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.624e-05/0.4456, allocations: 12.41 kB / 0.5419 GB, free: 20.12 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007822/0.4464, allocations: 389.8 kB / 0.5423 GB, free: 19.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001518/0.448, allocations: 451.2 kB / 0.5427 GB, free: 19.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004676/0.4527, allocations: 6.759 MB / 0.5493 GB, free: 12.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001712/0.4544, allocations: 126.4 kB / 0.5495 GB, free: 12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001197/0.4545, allocations: 75.98 kB / 0.5495 GB, free: 11.93 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.001472/0.456, allocations: 0.8994 MB / 0.5504 GB, free: 11.02 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004041/0.4564, allocations: 209.4 kB / 0.5506 GB, free: 10.81 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004185/0.4606, allocations: 2.914 MB / 0.5535 GB, free: 7.867 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.173e-05/0.4606, allocations: 16 kB / 0.5535 GB, free: 7.852 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.776e-06/0.4606, allocations: 4 kB / 0.5535 GB, free: 7.848 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.492e-05/0.4607, allocations: 11.97 kB / 0.5535 GB, free: 7.836 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009322/0.47, allocations: 6.148 MB / 0.5595 GB, free: 1.594 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.18e-05/0.47, allocations: 0 / 0.5595 GB, free: 1.594 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00104/0.4711, allocations: 243.6 kB / 0.5597 GB, free: 1.355 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001844/0.473, allocations: 0.8096 MB / 0.5605 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00011/0.4731, allocations: 47.91 kB / 0.5606 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01288/0.486, allocations: 10.77 MB / 0.5711 GB, free: 5.309 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.1e-06/0.486, allocations: 4 kB / 0.5711 GB, free: 5.305 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007031/0.493, allocations: 4.163 MB / 0.5751 GB, free: 1.074 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001108/0.4942, allocations: 490.3 kB / 0.5756 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003079/0.4945, allocations: 39.98 kB / 0.5757 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001143/0.4956, allocations: 95.83 kB / 0.5757 GB, free: 452 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003245/0.496, allocations: 121.1 kB / 0.5759 GB, free: 328 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001073/0.4961, allocations: 48.17 kB / 0.5759 GB, free: 280 kB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002078/0.4982, allocations: 1.34 MB / 0.5772 GB, free: 14.91 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4982, allocations: 3.938 kB / 0.5772 GB, free: 14.91 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002206/0.5004, allocations: 0.5742 MB / 0.5778 GB, free: 14.33 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.0004377/0.5009, allocations: 191.2 kB / 0.578 GB, free: 14.14 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006131/0.507, allocations: 3.3 MB / 0.5812 GB, free: 10.8 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/0.507, allocations: 0 / 0.5812 GB, free: 10.8 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002586/0.5096, allocations: 1.642 MB / 0.5828 GB, free: 9.121 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002797/0.5124, allocations: 0.5305 MB / 0.5833 GB, free: 8.594 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01114/0.5236, allocations: 7.087 MB / 0.5902 GB, free: 1.449 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002113/0.5257, allocations: 2.21 MB / 0.5924 GB, free: 15.21 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001756/0.5275, allocations: 465.7 kB / 0.5928 GB, free: 14.75 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004845/0.528, allocations: 155.4 kB / 0.593 GB, free: 14.6 MB / 430.1 MB Notification: Performance of SimCode: time 9.62e-07/0.528, allocations: 0 / 0.593 GB, free: 14.6 MB / 430.1 MB Notification: Performance of Templates: time 0.06002/0.588, allocations: 32.87 MB / 0.6251 GB, free: 14.03 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