Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001369/0.001369, allocations: 80.31 kB / 22.21 MB, free: 2.289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001075/0.001075, allocations: 168.3 kB / 25.61 MB, free: 8.586 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8772/0.8772, allocations: 177.2 MB / 206.1 MB, free: 4.473 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3200,variableFilter="time|toSpacePhasor.y.[0-9,]+.|hallSensor.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3200,variableFilter="time|toSpacePhasor.y.[0-9,]+.|hallSensor.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.152e-06/1.152e-06, allocations: 0 / 274.2 MB, free: 4.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.158e-05/1.273e-05, allocations: 2.312 kB / 274.2 MB, free: 4.406 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.006769/0.006782, allocations: 8.844 MB / 283 MB, free: 11.53 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003889/0.01067, allocations: 3.089 MB / 286.1 MB, free: 8.434 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005965/0.01127, allocations: 63.56 kB / 286.2 MB, free: 8.371 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001288/0.01256, allocations: 0.6599 MB / 286.9 MB, free: 7.707 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00124/0.0138, allocations: 0.7878 MB / 287.6 MB, free: 6.914 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000419/0.01421, allocations: 323.3 kB / 288 MB, free: 6.598 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001457/0.01567, allocations: 2.213 MB / 290.2 MB, free: 4.375 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007577/0.01643, allocations: 0.8012 MB / 291 MB, free: 3.52 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001241/0.01767, allocations: 1.54 MB / 292.5 MB, free: 1.977 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007992/0.01847, allocations: 1.001 MB / 293.5 MB, free: 0.9727 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004326/0.0189, allocations: 224 kB / 293.7 MB, free: 0.7539 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003434/0.01925, allocations: 323.8 kB / 294 MB, free: 448 kB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003992/0.01964, allocations: 0.6816 MB / 294.7 MB, free: 15.75 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005209/0.02017, allocations: 0.7405 MB / 295.5 MB, free: 15.01 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001249/0.02141, allocations: 1.701 MB / 297.2 MB, free: 13.3 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.294e-06/0.02142, allocations: 0 / 297.2 MB, free: 13.3 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.01e-07/0.02142, allocations: 0 / 297.2 MB, free: 13.3 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.46e-05/0.02143, allocations: 0 / 297.2 MB, free: 13.3 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 404 * Number of variables: 404 Notification: Performance of Generate backend data structure: time 0.002254/0.02369, allocations: 2.321 MB / 299.5 MB, free: 10.93 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.272e-05/0.02372, allocations: 8.031 kB / 299.5 MB, free: 10.93 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004963/0.02422, allocations: 375.5 kB / 299.9 MB, free: 10.56 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001323/0.02554, allocations: 1.093 MB / 301 MB, free: 9.422 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.261e-05/0.0256, allocations: 119.4 kB / 301.1 MB, free: 9.305 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001515/0.02575, allocations: 156.3 kB / 301.2 MB, free: 9.152 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001167/0.02692, allocations: 1.196 MB / 302.4 MB, free: 7.871 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.514e-05/0.02695, allocations: 7.953 kB / 302.4 MB, free: 7.863 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.613e-05/0.02704, allocations: 64 kB / 302.5 MB, free: 7.801 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.979e-05/0.0271, allocations: 82.92 kB / 302.6 MB, free: 7.719 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006306/0.02773, allocations: 479.9 kB / 303 MB, free: 7.238 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004768/0.0325, allocations: 6.195 MB / 309.2 MB, free: 0.7031 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003354/0.03284, allocations: 225.9 kB / 309.5 MB, free: 484 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001033/0.03294, allocations: 97.02 kB / 309.6 MB, free: 384 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.507e-05/0.03303, allocations: 40.42 kB / 309.6 MB, free: 344 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.103e-05/0.03305, allocations: 42.36 kB / 309.6 MB, free: 292 kB / 282.7 MB Notification: Performance of pre-optimization done (n=48): time 1.763e-06/0.03306, allocations: 0 / 309.6 MB, free: 292 kB / 282.7 MB Notification: Performance of matching and sorting (n=63): time 0.001975/0.03503, allocations: 1.386 MB / 311 MB, free: 14.87 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.164e-05/0.03505, allocations: 56.06 kB / 311.1 MB, free: 14.8 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009558/0.03601, allocations: 1.401 MB / 312.5 MB, free: 13.38 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.921e-05/0.03604, allocations: 33.7 kB / 312.5 MB, free: 13.34 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005018/0.03654, allocations: 1.168 MB / 313.7 MB, free: 12.16 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001243/0.03666, allocations: 254 kB / 313.9 MB, free: 11.91 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002593/0.03692, allocations: 336.8 kB / 314.3 MB, free: 11.57 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.268e-05/0.03701, allocations: 488.7 kB / 314.7 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001712/0.03718, allocations: 143.9 kB / 314.9 MB, free: 10.95 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009115/0.03809, allocations: 1.506 MB / 316.4 MB, free: 8.809 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001021/0.03911, allocations: 1.845 MB / 318.2 MB, free: 6.332 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.997e-06/0.03912, allocations: 12 kB / 318.2 MB, free: 6.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.001353/0.04047, allocations: 1.403 MB / 319.6 MB, free: 4.898 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.09e-05/0.04049, allocations: 20 kB / 319.7 MB, free: 4.879 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.024e-05/0.04051, allocations: 32 kB / 319.7 MB, free: 4.848 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002097/0.04072, allocations: 115 kB / 319.8 MB, free: 4.723 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006003/0.04132, allocations: 383.5 kB / 320.2 MB, free: 4.348 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009554/0.04228, allocations: 1.818 MB / 322 MB, free: 2.41 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005268/0.0428, allocations: 111.7 kB / 322.1 MB, free: 2.301 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.02e-05/0.04288, allocations: 84 kB / 322.2 MB, free: 2.219 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 149 * 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 {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002632/0.04314, allocations: 295.6 kB / 322.5 MB, free: 1.918 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001503/0.04329, allocations: 167.1 kB / 322.6 MB, free: 1.754 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006274/0.04392, allocations: 0.5338 MB / 323.2 MB, free: 1.191 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.04392, allocations: 8.141 kB / 323.2 MB, free: 1.184 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.945e-06/0.04392, allocations: 4 kB / 323.2 MB, free: 1.18 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.04393, allocations: 7.969 kB / 323.2 MB, free: 1.172 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001667/0.0456, allocations: 1.662 MB / 324.9 MB, free: 15.42 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.0456, allocations: 0 / 324.9 MB, free: 15.42 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000234/0.04583, allocations: 99.98 kB / 324.9 MB, free: 15.32 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001549/0.04599, allocations: 90.95 kB / 325 MB, free: 15.22 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.379e-05/0.04601, allocations: 16 kB / 325.1 MB, free: 15.21 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000642/0.04666, allocations: 1.745 MB / 326.8 MB, free: 13.35 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.04666, allocations: 8.031 kB / 326.8 MB, free: 13.34 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007529/0.04741, allocations: 0.8453 MB / 327.7 MB, free: 12.43 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002201/0.04763, allocations: 190.9 kB / 327.8 MB, free: 12.25 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.734e-05/0.04772, allocations: 12 kB / 327.8 MB, free: 12.23 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002682/0.04799, allocations: 31.98 kB / 327.9 MB, free: 12.2 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.045e-05/0.04806, allocations: 52.38 kB / 327.9 MB, free: 12.15 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002694/0.04833, allocations: 12 kB / 327.9 MB, free: 12.14 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004876/0.04881, allocations: 0.6924 MB / 328.6 MB, free: 11.45 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.04881, allocations: 4 kB / 328.6 MB, free: 11.45 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007224/0.04954, allocations: 348 kB / 329 MB, free: 11.11 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 1 (speed.phi) * 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 (60): * Single equations (assignments): 57 * 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 {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001973/0.04973, allocations: 171 kB / 329.1 MB, free: 10.93 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008322/0.05057, allocations: 0.8949 MB / 330 MB, free: 10.02 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.05057, allocations: 8.188 kB / 330 MB, free: 10.02 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003108/0.05088, allocations: 404.8 kB / 330.4 MB, free: 9.59 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008466/0.05173, allocations: 369.7 kB / 330.8 MB, free: 9.242 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0026/0.05433, allocations: 2.565 MB / 333.4 MB, free: 6.605 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002641/0.05459, allocations: 398.4 kB / 333.8 MB, free: 6.191 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004006/0.05499, allocations: 201.2 kB / 334 MB, free: 5.988 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005129/0.0555, allocations: 426 kB / 334.4 MB, free: 5.57 MB / 314.7 MB Notification: Performance of SimCode: time 5.51e-07/0.0555, allocations: 0 / 334.4 MB, free: 5.57 MB / 314.7 MB Notification: Performance of Templates: time 0.02235/0.07786, allocations: 19.63 MB / 354 MB, free: 2.262 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_NoLoad/SMPM_NoLoad.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.025261700153351]