Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.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) 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(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=800,variableFilter="time|smpm.is.1.|smpm.is.2.|constantSpeed.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=800,variableFilter="time|smpm.is.1.|smpm.is.2.|constantSpeed.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007822/0.0007852, allocations: 92.58 kB / 17.31 MB, free: 5.59 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.0008393/0.0008394, allocations: 183.1 kB / 18.21 MB, free: 5.191 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.111/1.111, allocations: 223.3 MB / 242.3 MB, free: 14.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002056/0.0002056, allocations: 11.94 kB / 302.1 MB, free: 5.855 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06905/0.06927, allocations: 50.41 MB / 352.5 MB, free: 3.434 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.007464/0.07675, allocations: 8.449 MB / 361 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004373/0.08113, allocations: 3.093 MB / 364 MB, free: 7.84 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007578/0.08191, allocations: 39.81 kB / 364.1 MB, free: 7.801 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00127/0.08319, allocations: 0.5945 MB / 364.7 MB, free: 7.203 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001537/0.08473, allocations: 0.6334 MB / 365.3 MB, free: 6.566 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005803/0.08532, allocations: 279.7 kB / 365.6 MB, free: 6.293 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002023/0.08735, allocations: 2.417 MB / 368 MB, free: 3.871 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001178/0.08854, allocations: 1.184 MB / 369.2 MB, free: 2.641 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006431/0.08919, allocations: 0.7117 MB / 369.9 MB, free: 1.926 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009484/0.09015, allocations: 0.9841 MB / 370.9 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001507/0.09031, allocations: 104 kB / 371 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003521/0.09067, allocations: 199.8 kB / 371.2 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004292/0.09111, allocations: 0.5334 MB / 371.7 MB, free: 108 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1261/0.2172, allocations: 0.9348 MB / 372.6 MB, free: 12.13 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002468/0.2197, allocations: 2.49 MB / 375.1 MB, free: 12 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.2197, allocations: 4.031 kB / 375.1 MB, free: 12 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.2197, allocations: 0 / 375.1 MB, free: 12 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.781e-05/0.2198, allocations: 0 / 375.1 MB, free: 12 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 401 * Number of variables: 401 Notification: Performance of Generate backend data structure: time 0.003894/0.2237, allocations: 1.93 MB / 377.1 MB, free: 11.03 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.192e-05/0.2237, allocations: 11.22 kB / 377.1 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007448/0.2245, allocations: 229.8 kB / 377.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001747/0.2262, allocations: 1.19 MB / 378.5 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.633e-05/0.2263, allocations: 116 kB / 378.6 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002419/0.2266, allocations: 151.1 kB / 378.8 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00288/0.2295, allocations: 2.007 MB / 380.8 MB, free: 10.35 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.293e-05/0.2295, allocations: 7.375 kB / 380.8 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001313/0.2296, allocations: 63.69 kB / 380.8 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.365e-05/0.2297, allocations: 81.33 kB / 380.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002149/0.2319, allocations: 1.651 MB / 382.6 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006848/0.2387, allocations: 6.964 MB / 389.5 MB, free: 6.48 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006006/0.2393, allocations: 449.1 kB / 390 MB, free: 6.262 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003014/0.2397, allocations: 259.4 kB / 390.2 MB, free: 6.141 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001578/0.2398, allocations: 119.9 kB / 390.3 MB, free: 6.035 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.58e-05/0.2398, allocations: 41.28 kB / 390.4 MB, free: 5.988 MB / 302.1 MB Notification: Performance of pre-optimization done (n=47): time 2.034e-06/0.2399, allocations: 0 / 390.4 MB, free: 5.988 MB / 302.1 MB Notification: Performance of matching and sorting (n=63): time 0.005462/0.2453, allocations: 3.298 MB / 393.7 MB, free: 4.117 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001562/0.2469, allocations: 2.177 MB / 395.9 MB, free: 2.164 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001655/0.2486, allocations: 1.611 MB / 397.5 MB, free: 1.289 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.951e-05/0.2486, allocations: 35.48 kB / 397.5 MB, free: 1.25 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004329/0.249, allocations: 1.023 MB / 398.5 MB, free: 356 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000119/0.2492, allocations: 238.7 kB / 398.8 MB, free: 152 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001179/0.2493, allocations: 133.2 kB / 398.9 MB, free: 64 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.543e-05/0.2494, allocations: 305.2 kB / 399.2 MB, free: 15.76 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006253/0.25, allocations: 0.5179 MB / 399.7 MB, free: 15.51 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001162/0.2512, allocations: 1.463 MB / 401.2 MB, free: 13.94 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001866/0.2531, allocations: 2.142 MB / 403.3 MB, free: 12.1 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.809e-06/0.2531, allocations: 7.312 kB / 403.3 MB, free: 12.1 MB / 318.1 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.00259/0.2557, allocations: 2.153 MB / 405.5 MB, free: 11.19 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.131e-05/0.2557, allocations: 19.81 kB / 405.5 MB, free: 11.19 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.217e-05/0.2557, allocations: 35.19 kB / 405.5 MB, free: 11.19 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004257/0.2562, allocations: 229.5 kB / 405.7 MB, free: 11.08 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009675/0.2572, allocations: 398.7 kB / 406.1 MB, free: 10.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001325/0.2585, allocations: 1.719 MB / 407.9 MB, free: 9.004 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001043/0.2595, allocations: 135.4 kB / 408 MB, free: 8.871 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00011/0.2597, allocations: 95.98 kB / 408.1 MB, free: 8.777 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 152 * 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 (204): * Single equations (assignments): 201 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006713/0.2603, allocations: 0.5966 MB / 408.7 MB, free: 8.207 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001896/0.2605, allocations: 154.1 kB / 408.8 MB, free: 8.055 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001692/0.2622, allocations: 1.113 MB / 409.9 MB, free: 6.93 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.2623, allocations: 8 kB / 409.9 MB, free: 6.922 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.2623, allocations: 3.938 kB / 410 MB, free: 6.918 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.335e-06/0.2623, allocations: 7.969 kB / 410 MB, free: 6.91 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004452/0.2667, allocations: 3.389 MB / 413.3 MB, free: 3.426 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.173e-06/0.2668, allocations: 8.656 kB / 413.4 MB, free: 3.418 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003754/0.2671, allocations: 106.6 kB / 413.5 MB, free: 3.32 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005507/0.2677, allocations: 230.1 kB / 413.7 MB, free: 3.09 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.838e-05/0.2677, allocations: 23.98 kB / 413.7 MB, free: 3.066 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003165/0.2709, allocations: 3.699 MB / 417.4 MB, free: 15.12 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001713/0.2726, allocations: 2.001 MB / 419.4 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002107/0.2748, allocations: 1.746 MB / 421.2 MB, free: 11.16 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003805/0.2752, allocations: 315.2 kB / 421.5 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001583/0.2753, allocations: 16 kB / 421.5 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005998/0.2759, allocations: 52.25 kB / 421.5 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001111/0.2761, allocations: 66.52 kB / 421.6 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.052e-05/0.2761, allocations: 28.66 kB / 421.6 MB, free: 10.68 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001249/0.2774, allocations: 1.07 MB / 422.7 MB, free: 9.609 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.974e-06/0.2774, allocations: 0 / 422.7 MB, free: 9.609 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001262/0.2786, allocations: 387.9 kB / 423.1 MB, free: 9.23 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 1 ($STATESET1.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 (57): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * 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): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002637/0.2789, allocations: 179.4 kB / 423.2 MB, free: 9.051 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001967/0.2809, allocations: 1.602 MB / 424.8 MB, free: 7.496 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.2809, allocations: 0 / 424.8 MB, free: 7.496 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001041/0.2819, allocations: 0.8298 MB / 425.7 MB, free: 6.641 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002466/0.2844, allocations: 384.6 kB / 426.1 MB, free: 6.27 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004323/0.2887, allocations: 3.942 MB / 430 MB, free: 2.23 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009844/0.2897, allocations: 1.453 MB / 431.4 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002804/0.29, allocations: 123.4 kB / 431.6 MB, free: 0.625 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.29, allocations: 4 kB / 431.6 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of Templates: time 0.04418/0.3342, allocations: 46.89 MB / 478.5 MB, free: 1.836 MB / 382.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_NoLoad/SMPM_NoLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches