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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001706/0.001706, allocations: 186.5 kB / 17.27 MB, free: 4.48 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.534/1.534, allocations: 222.9 MB / 240.9 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009367/0.0009367, allocations: 107.7 kB / 291.2 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008748/0.0008749, allocations: 47.88 kB / 350 MB, free: 60 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2358/0.2367, allocations: 49.44 MB / 399.5 MB, free: 33.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.007513/0.2443, allocations: 8.928 MB / 408.4 MB, free: 24.4 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004408/0.2488, allocations: 3.133 MB / 411.5 MB, free: 21.26 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006973/0.2495, allocations: 43.81 kB / 411.6 MB, free: 21.22 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001252/0.2508, allocations: 0.5905 MB / 412.2 MB, free: 20.62 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001216/0.252, allocations: 0.6256 MB / 412.8 MB, free: 20 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004934/0.2525, allocations: 296.1 kB / 413.1 MB, free: 19.71 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001432/0.254, allocations: 2.446 MB / 415.5 MB, free: 17.25 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009976/0.255, allocations: 1.192 MB / 416.7 MB, free: 16.02 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007681/0.2558, allocations: 0.8014 MB / 417.5 MB, free: 15.21 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001045/0.2568, allocations: 1.093 MB / 418.6 MB, free: 14.11 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000214/0.2571, allocations: 148 kB / 418.8 MB, free: 13.97 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004836/0.2575, allocations: 239.8 kB / 419 MB, free: 13.73 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004188/0.258, allocations: 0.588 MB / 419.6 MB, free: 13.14 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007015/0.2587, allocations: 0.9873 MB / 420.6 MB, free: 12.15 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001782/0.2605, allocations: 3.002 MB / 423.6 MB, free: 9.141 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.2605, allocations: 4 kB / 423.6 MB, free: 9.137 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.52e-07/0.2605, allocations: 0 / 423.6 MB, free: 9.137 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.738e-05/0.2605, allocations: 0 / 423.6 MB, free: 9.137 MB / 298.7 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.00354/0.2641, allocations: 2.261 MB / 425.8 MB, free: 6.816 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.2641, allocations: 12.03 kB / 425.9 MB, free: 6.805 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005629/0.2647, allocations: 230.5 kB / 426.1 MB, free: 6.578 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001663/0.2664, allocations: 1.184 MB / 427.3 MB, free: 5.336 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.193e-05/0.2665, allocations: 111.5 kB / 427.4 MB, free: 5.227 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001765/0.2666, allocations: 155.8 kB / 427.5 MB, free: 5.074 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002393/0.269, allocations: 2.008 MB / 429.5 MB, free: 3.016 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.582e-05/0.2691, allocations: 4 kB / 429.5 MB, free: 3.012 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001224/0.2692, allocations: 64 kB / 429.6 MB, free: 2.949 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.763e-05/0.2693, allocations: 78.91 kB / 429.7 MB, free: 2.871 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002178/0.2715, allocations: 1.643 MB / 431.3 MB, free: 1.223 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01044/0.2819, allocations: 6.952 MB / 438.3 MB, free: 9.941 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007333/0.2827, allocations: 448.7 kB / 438.7 MB, free: 9.492 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003674/0.2831, allocations: 277 kB / 439 MB, free: 9.223 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002138/0.2833, allocations: 113.5 kB / 439.1 MB, free: 9.094 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.443e-05/0.2834, allocations: 39 kB / 439.1 MB, free: 9.047 MB / 314.7 MB Notification: Performance of pre-optimization done (n=47): time 2.916e-06/0.2834, allocations: 0 / 439.1 MB, free: 9.047 MB / 314.7 MB Notification: Performance of matching and sorting (n=63): time 0.007587/0.291, allocations: 3.295 MB / 442.4 MB, free: 5.672 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00284/0.2939, allocations: 2.171 MB / 444.6 MB, free: 3.336 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002694/0.2966, allocations: 1.615 MB / 446.2 MB, free: 1.711 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001313/0.2968, allocations: 37.7 kB / 446.3 MB, free: 1.668 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008468/0.2976, allocations: 1.018 MB / 447.3 MB, free: 0.6367 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002463/0.2979, allocations: 236.8 kB / 447.5 MB, free: 412 kB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004157/0.2983, allocations: 323 kB / 447.8 MB, free: 80 kB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.2984, allocations: 301.1 kB / 448.1 MB, free: 15.78 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007585/0.2992, allocations: 0.5192 MB / 448.6 MB, free: 15.26 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001634/0.3008, allocations: 1.461 MB / 450.1 MB, free: 13.33 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00255/0.3034, allocations: 2.138 MB / 452.2 MB, free: 10.72 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.656e-05/0.3034, allocations: 12 kB / 452.2 MB, free: 10.71 MB / 330.7 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.003716/0.3071, allocations: 2.157 MB / 454.4 MB, free: 8.535 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.444e-05/0.3072, allocations: 20 kB / 454.4 MB, free: 8.516 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.278e-05/0.3072, allocations: 32 kB / 454.4 MB, free: 8.484 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005308/0.3078, allocations: 230.3 kB / 454.7 MB, free: 8.25 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001135/0.3089, allocations: 395.6 kB / 455.1 MB, free: 7.863 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00161/0.3106, allocations: 1.726 MB / 456.8 MB, free: 6 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001592/0.3122, allocations: 131.4 kB / 456.9 MB, free: 5.871 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001441/0.3123, allocations: 96 kB / 457 MB, free: 5.777 MB / 330.7 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.001168/0.3135, allocations: 0.5867 MB / 457.6 MB, free: 5.18 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003805/0.3139, allocations: 154.1 kB / 457.7 MB, free: 5.027 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002011/0.3159, allocations: 1.11 MB / 458.9 MB, free: 3.895 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.949e-06/0.3159, allocations: 11.88 kB / 458.9 MB, free: 3.883 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.3159, allocations: 0 / 458.9 MB, free: 3.883 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.417e-06/0.316, allocations: 11.98 kB / 458.9 MB, free: 3.871 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005882/0.3218, allocations: 3.401 MB / 462.3 MB, free: 324 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.614e-06/0.3219, allocations: 4 kB / 462.3 MB, free: 320 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003957/0.3223, allocations: 112.5 kB / 462.4 MB, free: 208 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006235/0.3229, allocations: 230.4 kB / 462.6 MB, free: 15.96 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.231e-05/0.323, allocations: 16 kB / 462.6 MB, free: 15.95 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003679/0.3267, allocations: 3.706 MB / 466.3 MB, free: 11.98 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002096/0.3288, allocations: 2.017 MB / 468.4 MB, free: 9.812 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01331/0.3421, allocations: 8.27 MB / 476.6 MB, free: 1.148 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006516/0.3428, allocations: 307.1 kB / 476.9 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001504/0.343, allocations: 19.98 kB / 476.9 MB, free: 0.8086 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006948/0.3437, allocations: 43.95 kB / 477 MB, free: 0.7656 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001793/0.3439, allocations: 71.8 kB / 477.1 MB, free: 0.6953 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.664e-05/0.3439, allocations: 24 kB / 477.1 MB, free: 0.6719 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001735/0.3457, allocations: 1.067 MB / 478.1 MB, free: 15.61 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3457, allocations: 0 / 478.1 MB, free: 15.61 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002219/0.3479, allocations: 0.5235 MB / 478.7 MB, free: 15.08 MB / 362.7 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.0003945/0.3483, allocations: 177.2 kB / 478.8 MB, free: 14.9 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002859/0.3512, allocations: 1.597 MB / 480.4 MB, free: 13.25 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.101e-06/0.3512, allocations: 448 / 480.4 MB, free: 13.25 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001386/0.3526, allocations: 0.8514 MB / 481.3 MB, free: 12.36 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002511/0.3552, allocations: 388.6 kB / 481.7 MB, free: 11.98 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008181/0.3634, allocations: 4.551 MB / 486.2 MB, free: 7.273 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001353/0.3648, allocations: 1.501 MB / 487.7 MB, free: 5.742 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001354/0.3661, allocations: 354.2 kB / 488.1 MB, free: 5.391 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002827/0.3664, allocations: 115.4 kB / 488.2 MB, free: 5.277 MB / 362.7 MB Notification: Performance of SimCode: time 1.012e-06/0.3664, allocations: 0 / 488.2 MB, free: 5.277 MB / 362.7 MB Notification: Performance of Templates: time 0.03978/0.4062, allocations: 21.47 MB / 0.4977 GB, free: 8 kB / 378.7 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/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_NoLoad/SMPM_NoLoad.csv","../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