Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="ModelicaTest_3.2.3_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.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="ModelicaTest_3.2.3_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.001486/0.001486, allocations: 107.4 kB / 17.03 MB, free: 6.102 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.001762/0.001762, allocations: 194.9 kB / 17.96 MB, free: 5.195 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.602/1.602, allocations: 205.1 MB / 223.8 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2298/0.2298, allocations: 43.53 MB / 314.7 MB, free: 484 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001473/0.001473, allocations: 64.39 kB / 384.2 MB, free: 56.39 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1214/0.1229, allocations: 57.79 MB / 442 MB, free: 6.18 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01336/0.1363, allocations: 11.63 MB / 453.6 MB, free: 10.49 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01081/0.1471, allocations: 3.953 MB / 457.5 MB, free: 6.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002989/0.1502, allocations: 63.69 kB / 457.6 MB, free: 6.457 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003022/0.1533, allocations: 0.8653 MB / 458.5 MB, free: 5.586 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00412/0.1574, allocations: 0.9473 MB / 459.4 MB, free: 4.633 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001463/0.1589, allocations: 0.5149 MB / 459.9 MB, free: 4.117 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004086/0.163, allocations: 3.348 MB / 463.3 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003577/0.1666, allocations: 2.989 MB / 466.3 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00272/0.1693, allocations: 1.55 MB / 467.8 MB, free: 12.15 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003581/0.1729, allocations: 1.997 MB / 469.8 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008036/0.1737, allocations: 432 kB / 470.2 MB, free: 9.727 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001266/0.175, allocations: 0.5272 MB / 470.8 MB, free: 9.199 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001177/0.1762, allocations: 1.227 MB / 472 MB, free: 7.969 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002242/0.1784, allocations: 1.898 MB / 473.9 MB, free: 6.062 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0059/0.1844, allocations: 5.572 MB / 479.5 MB, free: 484 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.1844, allocations: 0 / 479.5 MB, free: 484 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.1844, allocations: 4 kB / 479.5 MB, free: 480 kB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001372/0.1845, allocations: 0 / 479.5 MB, free: 480 kB / 350.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.008655/0.1932, allocations: 3.821 MB / 483.3 MB, free: 12.58 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.884e-05/0.1933, allocations: 15.89 kB / 483.3 MB, free: 12.56 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001106/0.1944, allocations: 392.5 kB / 483.7 MB, free: 12.18 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00397/0.1984, allocations: 1.962 MB / 485.6 MB, free: 10.16 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002056/0.1986, allocations: 210 kB / 485.9 MB, free: 9.953 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006107/0.1992, allocations: 291.8 kB / 486.1 MB, free: 9.668 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008753/0.208, allocations: 3.727 MB / 489.9 MB, free: 5.871 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.986e-05/0.2081, allocations: 7.906 kB / 489.9 MB, free: 5.863 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002677/0.2084, allocations: 120 kB / 490 MB, free: 5.746 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001607/0.2085, allocations: 141.5 kB / 490.1 MB, free: 5.605 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005806/0.2143, allocations: 3.164 MB / 493.3 MB, free: 2.43 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02288/0.2372, allocations: 11.44 MB / 0.4929 GB, free: 6.688 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004172/0.2415, allocations: 2.167 MB / 0.495 GB, free: 4.41 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002163/0.2437, allocations: 1.234 MB / 0.4962 GB, free: 3.172 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003573/0.2441, allocations: 215.4 kB / 0.4964 GB, free: 2.926 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.551e-05/0.2441, allocations: 47.88 kB / 0.4965 GB, free: 2.867 MB / 382.1 MB Notification: Performance of pre-optimization done (n=139): time 4.147e-06/0.2441, allocations: 0 / 0.4965 GB, free: 2.867 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.0202/0.2643, allocations: 8.213 MB / 0.5045 GB, free: 10.55 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.186e-05/0.2644, allocations: 68.72 kB / 0.5046 GB, free: 10.48 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003739/0.2682, allocations: 1.941 MB / 0.5065 GB, free: 8.492 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001367/0.2683, allocations: 49.7 kB / 0.5065 GB, free: 8.438 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00144/0.2698, allocations: 1.363 MB / 0.5078 GB, free: 7.059 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006274/0.2704, allocations: 0.5198 MB / 0.5083 GB, free: 6.531 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006477/0.2711, allocations: 323.3 kB / 0.5086 GB, free: 6.211 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.2713, allocations: 305.1 kB / 0.5089 GB, free: 5.91 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001749/0.273, allocations: 0.8745 MB / 0.5098 GB, free: 5.035 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001941/0.275, allocations: 1.349 MB / 0.5111 GB, free: 3.496 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003586/0.2786, allocations: 2.382 MB / 0.5134 GB, free: 0.918 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-05/0.2786, allocations: 4 kB / 0.5134 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.006262/0.2849, allocations: 2.928 MB / 0.5163 GB, free: 13.95 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.793e-05/0.2849, allocations: 12 kB / 0.5163 GB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.728e-05/0.285, allocations: 16 kB / 0.5163 GB, free: 13.92 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001134/0.2861, allocations: 387.5 kB / 0.5167 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001682/0.2878, allocations: 447.2 kB / 0.5171 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009144/0.297, allocations: 6.772 MB / 0.5237 GB, free: 5.898 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002609/0.2996, allocations: 123.8 kB / 0.5239 GB, free: 5.777 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005495/0.3002, allocations: 76.05 kB / 0.5239 GB, free: 5.703 MB / 414.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 (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.002696/0.3029, allocations: 0.907 MB / 0.5248 GB, free: 4.785 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001105/0.304, allocations: 209.4 kB / 0.525 GB, free: 4.578 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006589/0.3107, allocations: 2.899 MB / 0.5278 GB, free: 1.656 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-05/0.3107, allocations: 19.94 kB / 0.5279 GB, free: 1.637 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.353e-05/0.3107, allocations: 8 kB / 0.5279 GB, free: 1.629 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.435e-05/0.3108, allocations: 7.969 kB / 0.5279 GB, free: 1.621 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2801/0.5909, allocations: 6.131 MB / 0.5339 GB, free: 85.52 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.256e-05/0.591, allocations: 5.141 kB / 0.5339 GB, free: 85.52 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001046/0.592, allocations: 240 kB / 0.5341 GB, free: 85.52 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002134/0.5942, allocations: 0.8004 MB / 0.5349 GB, free: 85.5 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001219/0.5943, allocations: 48.12 kB / 0.5349 GB, free: 85.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01263/0.607, allocations: 10.73 MB / 0.5454 GB, free: 79.27 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.274e-06/0.607, allocations: 13.17 kB / 0.5454 GB, free: 79.26 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007133/0.6141, allocations: 4.182 MB / 0.5495 GB, free: 77.55 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00142/0.6156, allocations: 488.4 kB / 0.55 GB, free: 77.35 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002942/0.6159, allocations: 37.91 kB / 0.55 GB, free: 77.33 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001069/0.617, allocations: 100.1 kB / 0.5501 GB, free: 77.31 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003119/0.6173, allocations: 125 kB / 0.5502 GB, free: 77.28 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.508e-05/0.6174, allocations: 50.91 kB / 0.5503 GB, free: 77.27 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001879/0.6193, allocations: 1.329 MB / 0.5516 GB, free: 76.75 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.6193, allocations: 0 / 0.5516 GB, free: 76.75 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001894/0.6212, allocations: 0.58 MB / 0.5521 GB, free: 76.69 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.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 (117): * Single equations (assignments): 114 * 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.0003563/0.6216, allocations: 202.6 kB / 0.5523 GB, free: 76.57 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0033/0.6249, allocations: 2.642 MB / 0.5549 GB, free: 75.35 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/0.6249, allocations: 0 / 0.5549 GB, free: 75.35 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00207/0.627, allocations: 1.636 MB / 0.5565 GB, free: 74.52 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002255/0.6293, allocations: 0.532 MB / 0.557 GB, free: 74.35 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008234/0.6375, allocations: 5.753 MB / 0.5626 GB, free: 69.53 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001603/0.6391, allocations: 2.22 MB / 0.5648 GB, free: 67.28 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001538/0.6407, allocations: 468.7 kB / 0.5653 GB, free: 66.84 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004343/0.6411, allocations: 155.4 kB / 0.5654 GB, free: 66.69 MB / 414.1 MB Notification: Performance of SimCode: time 1.062e-06/0.6412, allocations: 0 / 0.5654 GB, free: 66.69 MB / 414.1 MB Notification: Performance of Templates: time 0.04817/0.6893, allocations: 32.76 MB / 0.5974 GB, free: 34.03 MB / 414.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & ./ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Electrical/Machines/SMPM_VoltageSourceWithLosses/SMPM_VoltageSourceWithLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches