Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.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.001353/0.001353, allocations: 80.41 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.001518/0.001518, allocations: 167.6 kB / 25.61 MB, free: 8.902 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.8898/0.8898, allocations: 177.1 MB / 206 MB, free: 4.5 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_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.[0-9,]+.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.102e-06/1.102e-06, allocations: 0 / 274.2 MB, free: 4.422 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.254e-05/1.365e-05, allocations: 6.875 kB / 274.2 MB, free: 4.414 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.007808/0.007822, allocations: 10.51 MB / 284.7 MB, free: 9.867 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004301/0.01212, allocations: 3.592 MB / 288.3 MB, free: 6.266 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006394/0.01276, allocations: 83.44 kB / 288.4 MB, free: 6.184 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001122/0.01388, allocations: 0.8226 MB / 289.2 MB, free: 5.355 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001322/0.01521, allocations: 0.939 MB / 290.2 MB, free: 4.41 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005349/0.01574, allocations: 483.1 kB / 290.6 MB, free: 3.938 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001824/0.01757, allocations: 3.035 MB / 293.7 MB, free: 0.8906 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001271/0.01884, allocations: 1.517 MB / 295.2 MB, free: 15.31 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001853/0.02069, allocations: 2.519 MB / 297.7 MB, free: 12.79 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001165/0.02185, allocations: 1.496 MB / 299.2 MB, free: 11.29 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003049/0.02216, allocations: 356 kB / 299.5 MB, free: 10.94 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004749/0.02263, allocations: 467.7 kB / 300 MB, free: 10.48 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005816/0.02322, allocations: 1.059 MB / 301.1 MB, free: 9.418 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007634/0.02398, allocations: 1.111 MB / 302.2 MB, free: 8.305 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001817/0.0258, allocations: 2.612 MB / 304.8 MB, free: 5.684 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.0258, allocations: 0 / 304.8 MB, free: 5.684 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.0258, allocations: 3.938 kB / 304.8 MB, free: 5.68 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.806e-05/0.02583, allocations: 4 kB / 304.8 MB, free: 5.676 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.003075/0.0289, allocations: 3.374 MB / 308.2 MB, free: 2.242 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.124e-05/0.02893, allocations: 11.98 kB / 308.2 MB, free: 2.23 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006777/0.02961, allocations: 0.5574 MB / 308.7 MB, free: 1.672 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00153/0.03114, allocations: 1.68 MB / 310.4 MB, free: 15.94 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.644e-05/0.03124, allocations: 197.3 kB / 310.6 MB, free: 15.75 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002224/0.03146, allocations: 256.3 kB / 310.9 MB, free: 15.5 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001765/0.03323, allocations: 1.829 MB / 312.7 MB, free: 13.56 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.527e-05/0.03327, allocations: 7.938 kB / 312.7 MB, free: 13.55 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001385/0.03341, allocations: 100 kB / 312.8 MB, free: 13.45 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.583e-05/0.0335, allocations: 120.9 kB / 312.9 MB, free: 13.33 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009893/0.03448, allocations: 0.7399 MB / 313.6 MB, free: 12.56 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007051/0.04154, allocations: 8.402 MB / 322 MB, free: 3.789 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006237/0.04216, allocations: 0.525 MB / 322.6 MB, free: 3.258 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003561/0.04252, allocations: 291 kB / 322.9 MB, free: 2.969 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001181/0.04263, allocations: 44.98 kB / 322.9 MB, free: 2.926 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.586e-05/0.04266, allocations: 46.39 kB / 322.9 MB, free: 2.867 MB / 298.7 MB Notification: Performance of pre-optimization done (n=98): time 2.134e-06/0.04266, allocations: 4 kB / 323 MB, free: 2.863 MB / 298.7 MB Notification: Performance of matching and sorting (n=123): time 0.0043/0.04696, allocations: 2.833 MB / 325.8 MB, free: 15.99 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.719e-05/0.04699, allocations: 64.41 kB / 325.8 MB, free: 15.91 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009983/0.04799, allocations: 1.391 MB / 327.2 MB, free: 14.5 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.388e-05/0.04804, allocations: 49.7 kB / 327.3 MB, free: 14.45 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006402/0.04868, allocations: 1.414 MB / 328.7 MB, free: 13.02 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002249/0.04891, allocations: 456.2 kB / 329.1 MB, free: 12.57 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002728/0.04918, allocations: 305 kB / 329.4 MB, free: 12.27 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.7e-05/0.04928, allocations: 476.8 kB / 329.9 MB, free: 11.8 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002354/0.04951, allocations: 187.8 kB / 330.1 MB, free: 11.61 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005489/0.05006, allocations: 0.9299 MB / 331 MB, free: 10.37 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009128/0.05097, allocations: 1.27 MB / 332.3 MB, free: 8.781 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.7e-06/0.05098, allocations: 4 kB / 332.3 MB, free: 8.777 MB / 314.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.001378/0.05236, allocations: 1.303 MB / 333.6 MB, free: 7.449 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.087e-05/0.05238, allocations: 15.94 kB / 333.6 MB, free: 7.434 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.45e-05/0.05239, allocations: 16 kB / 333.6 MB, free: 7.418 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002346/0.05263, allocations: 118.7 kB / 333.7 MB, free: 7.285 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007118/0.05334, allocations: 359.7 kB / 334.1 MB, free: 6.934 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001379/0.05472, allocations: 3.496 MB / 337.6 MB, free: 3.211 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004745/0.05519, allocations: 59.89 kB / 337.7 MB, free: 3.152 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.112e-05/0.05528, allocations: 59.98 kB / 337.7 MB, free: 3.094 MB / 314.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 {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004691/0.05575, allocations: 256.1 kB / 338 MB, free: 2.832 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002914/0.05604, allocations: 234.7 kB / 338.2 MB, free: 2.602 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001104/0.05715, allocations: 0.9045 MB / 339.1 MB, free: 1.672 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.043e-06/0.05715, allocations: 12 kB / 339.1 MB, free: 1.66 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.05716, allocations: 0 / 339.1 MB, free: 1.66 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/0.05717, allocations: 11.97 kB / 339.1 MB, free: 1.648 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002747/0.05991, allocations: 2.475 MB / 341.6 MB, free: 15.07 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.509e-06/0.05992, allocations: 4.281 kB / 341.6 MB, free: 15.07 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005022/0.06042, allocations: 215.7 kB / 341.8 MB, free: 14.86 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001984/0.06062, allocations: 102.6 kB / 341.9 MB, free: 14.74 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.4e-05/0.06066, allocations: 24 kB / 341.9 MB, free: 14.72 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001243/0.06191, allocations: 3.481 MB / 345.4 MB, free: 11.01 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.06191, allocations: 0 / 345.4 MB, free: 11.01 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001312/0.06322, allocations: 1.339 MB / 346.8 MB, free: 9.586 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003204/0.06354, allocations: 270.7 kB / 347 MB, free: 9.32 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001108/0.06365, allocations: 24 kB / 347 MB, free: 9.297 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003498/0.064, allocations: 35.98 kB / 347.1 MB, free: 9.262 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001123/0.06411, allocations: 88.72 kB / 347.2 MB, free: 9.176 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.24e-05/0.06415, allocations: 27.98 kB / 347.2 MB, free: 9.148 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005494/0.0647, allocations: 0.7507 MB / 347.9 MB, free: 8.402 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0647, allocations: 0 / 347.9 MB, free: 8.402 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008406/0.06554, allocations: 467.9 kB / 348.4 MB, free: 7.945 MB / 330.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 {(1,2,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.0002449/0.06579, allocations: 186.9 kB / 348.6 MB, free: 7.754 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001099/0.06689, allocations: 1.164 MB / 349.7 MB, free: 6.555 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.06689, allocations: 3.984 kB / 349.7 MB, free: 6.551 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005826/0.06748, allocations: 0.748 MB / 350.5 MB, free: 5.75 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001049/0.06853, allocations: 456.3 kB / 350.9 MB, free: 5.312 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004236/0.07276, allocations: 4.131 MB / 355.1 MB, free: 1.082 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004849/0.07325, allocations: 0.6496 MB / 355.7 MB, free: 416 kB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005658/0.07381, allocations: 247.1 kB / 356 MB, free: 164 kB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.09207/0.1659, allocations: 0.4942 MB / 356.5 MB, free: 78.99 MB / 330.7 MB Notification: Performance of SimCode: time 8.82e-07/0.1659, allocations: 0 / 356.5 MB, free: 78.99 MB / 330.7 MB Notification: Performance of Templates: time 0.03397/0.1999, allocations: 25.32 MB / 381.8 MB, free: 64.33 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.470892604906112]