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.001439/0.001439, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.001591/0.001591, allocations: 165.4 kB / 24.56 MB, free: 16 kB / 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 1.005/1.005, allocations: 177.2 MB / 205 MB, free: 5.289 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.483e-06/1.483e-06, allocations: 0 / 273 MB, free: 1.387 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.574e-05/1.722e-05, allocations: 5.125 kB / 273 MB, free: 1.383 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.01041/0.01043, allocations: 9.088 MB / 282.1 MB, free: 8.25 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.008052/0.01848, allocations: 3.112 MB / 285.2 MB, free: 5.125 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003598/0.02208, allocations: 59.62 kB / 285.3 MB, free: 5.066 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001417/0.02349, allocations: 0.6521 MB / 285.9 MB, free: 4.41 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004678/0.02817, allocations: 0.7995 MB / 286.7 MB, free: 3.605 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005898/0.02876, allocations: 315.4 kB / 287 MB, free: 3.297 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002057/0.03082, allocations: 2.217 MB / 289.2 MB, free: 1.07 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004118/0.03494, allocations: 0.8129 MB / 290 MB, free: 208 kB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1339/0.1688, allocations: 1.535 MB / 291.6 MB, free: 16.46 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001651/0.1705, allocations: 0.9919 MB / 292.6 MB, free: 16.46 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004967/0.171, allocations: 223.5 kB / 292.8 MB, free: 16.46 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007512/0.1717, allocations: 317 kB / 293.1 MB, free: 16.46 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006225/0.1723, allocations: 0.6852 MB / 293.8 MB, free: 16.46 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00121/0.1736, allocations: 0.7406 MB / 294.5 MB, free: 16.46 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002407/0.176, allocations: 1.7 MB / 296.2 MB, free: 16.32 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.176, allocations: 0.6875 kB / 296.2 MB, free: 16.32 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.176, allocations: 0 / 296.2 MB, free: 16.32 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.988e-05/0.176, allocations: 1.938 kB / 296.2 MB, free: 16.32 MB / 266.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.003735/0.1797, allocations: 2.374 MB / 298.6 MB, free: 15.21 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.812e-05/0.1798, allocations: 11.09 kB / 298.6 MB, free: 15.21 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008242/0.1806, allocations: 373.2 kB / 299 MB, free: 15.1 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001763/0.1824, allocations: 1.151 MB / 300.1 MB, free: 14.73 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.318e-05/0.1825, allocations: 113.3 kB / 300.2 MB, free: 14.73 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002136/0.1827, allocations: 158 kB / 300.4 MB, free: 14.72 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002218/0.1849, allocations: 1.296 MB / 301.7 MB, free: 14.2 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.611e-05/0.185, allocations: 10.52 kB / 301.7 MB, free: 14.19 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000119/0.1851, allocations: 65.72 kB / 301.8 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001066/0.1852, allocations: 80.55 kB / 301.8 MB, free: 14.13 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001402/0.1866, allocations: 0.5847 MB / 302.4 MB, free: 14.04 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006284/0.1929, allocations: 6.218 MB / 308.6 MB, free: 9.777 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005605/0.1934, allocations: 267.8 kB / 308.9 MB, free: 9.695 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001862/0.1936, allocations: 111.3 kB / 309 MB, free: 9.668 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001666/0.1938, allocations: 45.27 kB / 309.1 MB, free: 9.664 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.125e-05/0.1938, allocations: 48.3 kB / 309.1 MB, free: 9.613 MB / 266.7 MB Notification: Performance of pre-optimization done (n=48): time 3.366e-06/0.1938, allocations: 0 / 309.1 MB, free: 9.613 MB / 266.7 MB Notification: Performance of matching and sorting (n=63): time 0.003389/0.1972, allocations: 1.757 MB / 310.9 MB, free: 8.797 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.839e-05/0.1972, allocations: 63.08 kB / 310.9 MB, free: 8.73 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001442/0.1987, allocations: 1.418 MB / 312.3 MB, free: 7.879 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.444e-05/0.1987, allocations: 36.61 kB / 312.4 MB, free: 7.84 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005245/0.1992, allocations: 1.155 MB / 313.5 MB, free: 6.828 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001379/0.1994, allocations: 252.8 kB / 313.8 MB, free: 6.621 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003098/0.1997, allocations: 336.4 kB / 314.1 MB, free: 6.406 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 3.995e-05/0.1997, allocations: 480.7 kB / 314.6 MB, free: 5.934 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003233/0.2, allocations: 180.1 kB / 314.8 MB, free: 5.875 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000683/0.2007, allocations: 1.545 MB / 316.3 MB, free: 3.82 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001311/0.202, allocations: 1.897 MB / 318.2 MB, free: 1.434 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.304e-05/0.202, allocations: 12 kB / 318.2 MB, free: 1.422 MB / 266.7 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.001993/0.204, allocations: 1.499 MB / 319.7 MB, free: 116 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.778e-05/0.2041, allocations: 20 kB / 319.7 MB, free: 96 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.437e-05/0.2041, allocations: 32 kB / 319.8 MB, free: 64 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003311/0.2044, allocations: 123 kB / 319.9 MB, free: 15.93 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008936/0.2053, allocations: 386.7 kB / 320.3 MB, free: 15.59 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001053/0.2064, allocations: 1.847 MB / 322.1 MB, free: 13.64 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001035/0.2074, allocations: 131.7 kB / 322.2 MB, free: 13.51 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001126/0.2075, allocations: 92 kB / 322.3 MB, free: 13.42 MB / 282.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.0005243/0.208, allocations: 294.1 kB / 322.6 MB, free: 13.15 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002335/0.2083, allocations: 172.5 kB / 322.8 MB, free: 12.98 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009703/0.2092, allocations: 0.5791 MB / 323.4 MB, free: 12.38 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.154e-06/0.2093, allocations: 12 kB / 323.4 MB, free: 12.37 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.2093, allocations: 0 / 323.4 MB, free: 12.37 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.183e-06/0.2093, allocations: 3.984 kB / 323.4 MB, free: 12.37 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002885/0.2122, allocations: 2.02 MB / 325.4 MB, free: 10.29 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.2122, allocations: 0 / 325.4 MB, free: 10.29 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000337/0.2125, allocations: 115.4 kB / 325.5 MB, free: 10.18 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002153/0.2127, allocations: 82.17 kB / 325.6 MB, free: 10.09 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.287e-05/0.2127, allocations: 15.94 kB / 325.6 MB, free: 10.07 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008684/0.2136, allocations: 1.787 MB / 327.4 MB, free: 8.184 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.2136, allocations: 4.969 kB / 327.4 MB, free: 8.18 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00116/0.2148, allocations: 0.907 MB / 328.3 MB, free: 7.219 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003516/0.2151, allocations: 202.9 kB / 328.5 MB, free: 7.02 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001205/0.2152, allocations: 12 kB / 328.5 MB, free: 7.008 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003924/0.2156, allocations: 47.98 kB / 328.6 MB, free: 6.961 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001164/0.2158, allocations: 51.44 kB / 328.6 MB, free: 6.91 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.339e-05/0.2158, allocations: 16 kB / 328.6 MB, free: 6.895 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0009151/0.2167, allocations: 0.7552 MB / 329.4 MB, free: 6.141 MB / 282.7 MB Notification: Performance of sort global known variables: time 2e-07/0.2167, allocations: 0 / 329.4 MB, free: 6.141 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001299/0.218, allocations: 355.9 kB / 329.7 MB, free: 5.793 MB / 282.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.0002712/0.2183, allocations: 169.8 kB / 329.9 MB, free: 5.621 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001471/0.2197, allocations: 0.9814 MB / 330.9 MB, free: 4.715 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.2197, allocations: 0 / 330.9 MB, free: 4.715 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005056/0.2202, allocations: 452.7 kB / 331.3 MB, free: 4.246 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001239/0.2215, allocations: 368.2 kB / 331.7 MB, free: 3.922 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003659/0.2251, allocations: 2.581 MB / 334.3 MB, free: 1.273 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002861/0.2254, allocations: 402.4 kB / 334.6 MB, free: 0.8555 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0006578/0.2261, allocations: 348.9 kB / 335 MB, free: 0.5078 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001711/0.2263, allocations: 100.5 kB / 335.1 MB, free: 420 kB / 282.7 MB Notification: Performance of SimCode: time 1.643e-06/0.2263, allocations: 0 / 335.1 MB, free: 420 kB / 282.7 MB Notification: Performance of Templates: time 0.02592/0.2522, allocations: 18.9 MB / 354 MB, free: 13.89 MB / 314.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.242305161897093]