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.002219/0.002219, allocations: 88.31 kB / 20.96 MB, free: 3.477 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.002393/0.002393, allocations: 161.7 kB / 24.27 MB, free: 172 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.601/1.601, allocations: 177.1 MB / 204.6 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 178] 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.1.|smpm.is.2.|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.1.|smpm.is.2.|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.533e-06/1.533e-06, allocations: 0 / 272.3 MB, free: 1.805 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.8e-05/2.954e-05, allocations: 2.312 kB / 272.3 MB, free: 1.801 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01396/0.01399, allocations: 9.666 MB / 282 MB, free: 8.09 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.008497/0.02248, allocations: 3.482 MB / 285.5 MB, free: 4.594 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00265/0.02513, allocations: 83.44 kB / 285.6 MB, free: 4.512 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003113/0.02825, allocations: 0.8149 MB / 286.4 MB, free: 3.691 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003926/0.03217, allocations: 0.9546 MB / 287.3 MB, free: 2.73 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001635/0.03381, allocations: 475.1 kB / 287.8 MB, free: 2.266 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1342/0.168, allocations: 3.04 MB / 290.8 MB, free: 15.55 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002639/0.1707, allocations: 1.506 MB / 292.3 MB, free: 15.36 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003635/0.1743, allocations: 2.068 MB / 294.4 MB, free: 15.36 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003021/0.1773, allocations: 1.519 MB / 295.9 MB, free: 15.36 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009123/0.1782, allocations: 372.7 kB / 296.3 MB, free: 15.36 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001209/0.1794, allocations: 485.5 kB / 296.8 MB, free: 15.36 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001108/0.1805, allocations: 1.114 MB / 297.9 MB, free: 15.24 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002429/0.183, allocations: 1.137 MB / 299 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004882/0.1879, allocations: 4.958 MB / 304 MB, free: 12.88 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.368e-06/0.1879, allocations: 1.875 kB / 304 MB, free: 12.88 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.1879, allocations: 0 / 304 MB, free: 12.88 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001726/0.188, allocations: 0.625 kB / 304 MB, free: 12.88 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.007163/0.1952, allocations: 3.378 MB / 307.4 MB, free: 10.57 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.713e-05/0.1952, allocations: 7 kB / 307.4 MB, free: 10.57 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00122/0.1965, allocations: 0.5619 MB / 307.9 MB, free: 10.31 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002909/0.1994, allocations: 1.825 MB / 309.8 MB, free: 9.199 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001162/0.1995, allocations: 190.7 kB / 309.9 MB, free: 9.113 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003518/0.1998, allocations: 252.5 kB / 310.2 MB, free: 9.031 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004787/0.2046, allocations: 3.356 MB / 313.5 MB, free: 6.59 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.262e-05/0.2047, allocations: 7.953 kB / 313.6 MB, free: 6.582 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002315/0.2049, allocations: 111.6 kB / 313.7 MB, free: 6.477 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.776e-05/0.205, allocations: 120.9 kB / 313.8 MB, free: 6.355 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003794/0.2088, allocations: 2.745 MB / 316.5 MB, free: 3.605 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01567/0.2245, allocations: 9.208 MB / 325.7 MB, free: 10.3 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002378/0.2269, allocations: 1.066 MB / 326.8 MB, free: 9.238 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001414/0.2283, allocations: 0.7056 MB / 327.5 MB, free: 8.531 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002536/0.2285, allocations: 68.89 kB / 327.6 MB, free: 8.465 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.795e-05/0.2286, allocations: 39.56 kB / 327.6 MB, free: 8.414 MB / 282.7 MB Notification: Performance of pre-optimization done (n=98): time 2.825e-06/0.2286, allocations: 0 / 327.6 MB, free: 8.414 MB / 282.7 MB Notification: Performance of matching and sorting (n=123): time 0.01758/0.2462, allocations: 6.67 MB / 334.3 MB, free: 1.746 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.95e-05/0.2462, allocations: 66.09 kB / 334.3 MB, free: 1.672 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002827/0.249, allocations: 1.649 MB / 336 MB, free: 16 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001229/0.2492, allocations: 49.7 kB / 336 MB, free: 15.96 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001263/0.2504, allocations: 1.318 MB / 337.4 MB, free: 14.64 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004805/0.2509, allocations: 445 kB / 337.8 MB, free: 14.21 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000555/0.2515, allocations: 291.4 kB / 338.1 MB, free: 13.92 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001771/0.2516, allocations: 305.1 kB / 338.4 MB, free: 13.62 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001406/0.253, allocations: 0.7769 MB / 339.2 MB, free: 12.84 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001954/0.255, allocations: 1.283 MB / 340.4 MB, free: 11.33 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003906/0.2589, allocations: 2.213 MB / 342.6 MB, free: 8.961 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.255e-05/0.2589, allocations: 8 kB / 342.7 MB, free: 8.953 MB / 298.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.00498/0.2639, allocations: 2.551 MB / 345.2 MB, free: 6.488 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.853e-05/0.2639, allocations: 15.56 kB / 345.2 MB, free: 6.477 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.579e-05/0.264, allocations: 16.06 kB / 345.2 MB, free: 6.461 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007505/0.2647, allocations: 243.2 kB / 345.5 MB, free: 6.211 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001625/0.2663, allocations: 416.9 kB / 345.9 MB, free: 5.828 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003701/0.27, allocations: 2.986 MB / 348.9 MB, free: 2.668 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001464/0.2715, allocations: 132 kB / 349 MB, free: 2.539 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001491/0.2716, allocations: 71.98 kB / 349.1 MB, free: 2.469 MB / 298.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.001565/0.2732, allocations: 0.8194 MB / 349.9 MB, free: 1.664 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004779/0.2737, allocations: 222.8 kB / 350.1 MB, free: 1.441 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004056/0.2777, allocations: 2.033 MB / 352.1 MB, free: 15.39 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.54e-05/0.2778, allocations: 12 kB / 352.2 MB, free: 15.38 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.718e-06/0.2778, allocations: 0 / 352.2 MB, free: 15.38 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.441e-05/0.2778, allocations: 7.969 kB / 352.2 MB, free: 15.37 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008451/0.2862, allocations: 4.111 MB / 356.3 MB, free: 11.23 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.262e-06/0.2862, allocations: 0 / 356.3 MB, free: 11.23 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001223/0.2875, allocations: 263 kB / 356.5 MB, free: 10.99 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006316/0.2881, allocations: 214.3 kB / 356.7 MB, free: 10.77 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.9e-05/0.2882, allocations: 27.98 kB / 356.8 MB, free: 10.75 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00329/0.2915, allocations: 2.954 MB / 359.7 MB, free: 7.602 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.2915, allocations: 3.562 kB / 359.7 MB, free: 7.602 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005818/0.2973, allocations: 3.163 MB / 362.9 MB, free: 4.391 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001172/0.2985, allocations: 338.7 kB / 363.2 MB, free: 4.059 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002429/0.2987, allocations: 28.06 kB / 363.2 MB, free: 4.031 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009626/0.2997, allocations: 95.88 kB / 363.3 MB, free: 3.938 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002321/0.2999, allocations: 88.83 kB / 363.4 MB, free: 3.852 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.121e-05/0.3, allocations: 32 kB / 363.5 MB, free: 3.82 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.00197/0.302, allocations: 1.106 MB / 364.6 MB, free: 2.719 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.302, allocations: 0 / 364.6 MB, free: 2.719 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001745/0.3037, allocations: 487 kB / 365 MB, free: 2.246 MB / 314.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.000433/0.3041, allocations: 196.1 kB / 365.2 MB, free: 2.059 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004081/0.3082, allocations: 2.125 MB / 367.4 MB, free: 15.97 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.3082, allocations: 0 / 367.4 MB, free: 15.97 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002082/0.3103, allocations: 1.131 MB / 368.5 MB, free: 14.84 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002273/0.3126, allocations: 473.2 kB / 368.9 MB, free: 14.39 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009348/0.3219, allocations: 4.947 MB / 373.9 MB, free: 9.375 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001982/0.3239, allocations: 1.445 MB / 375.3 MB, free: 7.895 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001627/0.3255, allocations: 478.8 kB / 375.8 MB, free: 7.422 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000491/0.326, allocations: 136.5 kB / 375.9 MB, free: 7.289 MB / 330.7 MB Notification: Performance of SimCode: time 1.272e-06/0.326, allocations: 0 / 375.9 MB, free: 7.289 MB / 330.7 MB Notification: Performance of Templates: time 0.04865/0.3747, allocations: 24.95 MB / 400.9 MB, free: 14.76 MB / 362.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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.572821871028282]