Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001456/0.001456, allocations: 83.89 kB / 21.19 MB, free: 3.383 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001502/0.001502, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9348/0.9348, allocations: 173.3 MB / 201.1 MB, free: 9.324 MB / 186.7 MB " [Timeout remaining time 179] 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_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.[0-9,]+.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.[0-9,]+.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.323e-06/1.323e-06, allocations: 0 / 268 MB, free: 6.418 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.842e-05/1.975e-05, allocations: 6.312 kB / 268 MB, free: 6.41 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.009613/0.009633, allocations: 10.8 MB / 278.8 MB, free: 11.56 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005731/0.01536, allocations: 3.56 MB / 282.4 MB, free: 7.992 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001317/0.01668, allocations: 83.44 kB / 282.4 MB, free: 7.91 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001453/0.01813, allocations: 0.8149 MB / 283.3 MB, free: 7.09 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001854/0.01999, allocations: 0.9507 MB / 284.2 MB, free: 6.133 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008422/0.02083, allocations: 463.1 kB / 284.7 MB, free: 5.68 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00242/0.02325, allocations: 3.038 MB / 287.7 MB, free: 2.629 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001439/0.02469, allocations: 1.525 MB / 289.2 MB, free: 1.039 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1272/0.1519, allocations: 2.072 MB / 291.3 MB, free: 16.91 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003131/0.155, allocations: 1.639 MB / 292.9 MB, free: 16.91 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00109/0.1561, allocations: 373.6 kB / 293.3 MB, free: 16.91 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001351/0.1574, allocations: 476.8 kB / 293.8 MB, free: 16.91 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00102/0.1584, allocations: 1.132 MB / 294.9 MB, free: 16.91 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001906/0.1604, allocations: 1.147 MB / 296 MB, free: 16.91 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003901/0.1643, allocations: 2.689 MB / 298.7 MB, free: 16.68 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.043e-05/0.1643, allocations: 3.25 kB / 298.7 MB, free: 16.68 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1643, allocations: 5.031 kB / 298.7 MB, free: 16.68 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001169/0.1644, allocations: 1.75 kB / 298.7 MB, free: 16.68 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.006744/0.1711, allocations: 3.566 MB / 302.3 MB, free: 15.21 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.56e-05/0.1712, allocations: 10.52 kB / 302.3 MB, free: 15.21 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001001/0.1722, allocations: 0.5488 MB / 302.9 MB, free: 15.04 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002154/0.1743, allocations: 1.686 MB / 304.6 MB, free: 14.55 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.073e-05/0.1744, allocations: 187.8 kB / 304.7 MB, free: 14.5 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002615/0.1747, allocations: 262.1 kB / 305 MB, free: 14.41 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002974/0.1777, allocations: 1.987 MB / 307 MB, free: 13.61 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.142e-05/0.1777, allocations: 11.45 kB / 307 MB, free: 13.6 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001662/0.1779, allocations: 108.4 kB / 307.1 MB, free: 13.52 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.892e-05/0.178, allocations: 129.8 kB / 307.2 MB, free: 13.5 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001824/0.1798, allocations: 0.9472 MB / 308.2 MB, free: 13.34 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008892/0.1887, allocations: 8.737 MB / 316.9 MB, free: 6.73 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008979/0.1896, allocations: 0.5508 MB / 317.5 MB, free: 6.176 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004663/0.19, allocations: 334.2 kB / 317.8 MB, free: 5.844 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001838/0.1902, allocations: 60.89 kB / 317.8 MB, free: 5.785 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.557e-05/0.1903, allocations: 46.39 kB / 317.9 MB, free: 5.73 MB / 266.7 MB Notification: Performance of pre-optimization done (n=98): time 2.645e-06/0.1903, allocations: 8 kB / 317.9 MB, free: 5.723 MB / 266.7 MB Notification: Performance of matching and sorting (n=123): time 0.005849/0.1961, allocations: 3.718 MB / 321.6 MB, free: 2 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.585e-05/0.1961, allocations: 64.41 kB / 321.7 MB, free: 1.926 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001285/0.1974, allocations: 1.446 MB / 323.1 MB, free: 472 kB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.024e-05/0.1975, allocations: 49.64 kB / 323.2 MB, free: 416 kB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007782/0.1983, allocations: 1.424 MB / 324.6 MB, free: 15.04 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002895/0.1985, allocations: 449.8 kB / 325 MB, free: 14.61 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003247/0.1989, allocations: 297.1 kB / 325.3 MB, free: 14.31 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000106/0.199, allocations: 476.8 kB / 325.8 MB, free: 13.84 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004474/0.1994, allocations: 254.7 kB / 326 MB, free: 13.59 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007385/0.2002, allocations: 0.9815 MB / 327 MB, free: 12.31 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001292/0.2015, allocations: 1.376 MB / 328.4 MB, free: 10.69 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.126e-05/0.2015, allocations: 4 kB / 328.4 MB, free: 10.69 MB / 282.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.001889/0.2034, allocations: 1.438 MB / 329.8 MB, free: 9.332 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.634e-05/0.2034, allocations: 12 kB / 329.9 MB, free: 9.32 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.161e-05/0.2034, allocations: 16.75 kB / 329.9 MB, free: 9.305 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003578/0.2038, allocations: 138.6 kB / 330 MB, free: 9.152 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008315/0.2046, allocations: 415.5 kB / 330.4 MB, free: 8.77 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001875/0.2065, allocations: 3.635 MB / 334 MB, free: 4.914 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009157/0.2074, allocations: 135.9 kB / 334.2 MB, free: 4.781 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.237e-05/0.2075, allocations: 71.98 kB / 334.2 MB, free: 4.711 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 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): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007317/0.2082, allocations: 253 kB / 334.5 MB, free: 4.477 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002456/0.2085, allocations: 226.8 kB / 334.7 MB, free: 4.254 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001399/0.2099, allocations: 1.044 MB / 335.8 MB, free: 3.195 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.624e-06/0.2099, allocations: 12 kB / 335.8 MB, free: 3.184 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.2099, allocations: 0 / 335.8 MB, free: 3.184 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.947e-06/0.2099, allocations: 7.969 kB / 335.8 MB, free: 3.176 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004266/0.2141, allocations: 3.107 MB / 338.9 MB, free: 12 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.112e-06/0.2141, allocations: 7.938 kB / 338.9 MB, free: 4 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006104/0.2148, allocations: 266.7 kB / 339.2 MB, free: 15.75 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002819/0.215, allocations: 118.9 kB / 339.3 MB, free: 15.62 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.849e-05/0.2151, allocations: 27.98 kB / 339.3 MB, free: 15.59 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001613/0.2167, allocations: 3.616 MB / 342.9 MB, free: 11.75 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/0.2167, allocations: 0 / 342.9 MB, free: 11.75 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001801/0.2185, allocations: 1.494 MB / 344.4 MB, free: 10.19 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005145/0.219, allocations: 322.7 kB / 344.7 MB, free: 9.875 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001267/0.2192, allocations: 27.94 kB / 344.7 MB, free: 9.848 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004758/0.2196, allocations: 99.92 kB / 344.8 MB, free: 9.75 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001158/0.2198, allocations: 76.84 kB / 344.9 MB, free: 9.676 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.81e-05/0.2198, allocations: 32 kB / 345 MB, free: 9.645 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0008992/0.2207, allocations: 0.8289 MB / 345.8 MB, free: 8.82 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2207, allocations: 0 / 345.8 MB, free: 8.82 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001283/0.222, allocations: 487.9 kB / 346.3 MB, free: 8.344 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.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 (121): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 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): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003069/0.2223, allocations: 196.1 kB / 346.5 MB, free: 8.156 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001713/0.224, allocations: 1.346 MB / 347.8 MB, free: 6.824 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.224, allocations: 0 / 347.8 MB, free: 6.824 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008472/0.2249, allocations: 0.8539 MB / 348.7 MB, free: 5.953 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001194/0.2261, allocations: 468.6 kB / 349.1 MB, free: 5.508 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005912/0.232, allocations: 4.189 MB / 353.3 MB, free: 1.23 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000578/0.2325, allocations: 0.6456 MB / 353.9 MB, free: 0.5586 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0008492/0.2334, allocations: 378.8 kB / 354.3 MB, free: 188 kB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003114/0.2337, allocations: 136.5 kB / 354.4 MB, free: 52 kB / 298.7 MB Notification: Performance of SimCode: time 1.293e-06/0.2337, allocations: 4 kB / 354.5 MB, free: 48 kB / 298.7 MB Notification: Performance of Templates: time 0.03916/0.2729, allocations: 24.84 MB / 379.3 MB, free: 7.613 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.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.5347287612967193]