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.001434/0.001434, allocations: 116.9 kB / 18.41 MB, free: 4.559 MB / 14.72 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.001482/0.001482, allocations: 191 kB / 21.35 MB, free: 1.621 MB / 14.72 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 1.44/1.44, allocations: 222.9 MB / 247.1 MB, free: 4.203 MB / 190.1 MB " [Timeout remaining time 178] 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.1.|smpm.is.2.|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.1.|smpm.is.2.|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 0.002125/0.002126, allocations: 51.91 kB / 358.7 MB, free: 8.301 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1066, allocations: 49.43 MB / 408.1 MB, free: 6.82 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01388/0.1205, allocations: 10.91 MB / 419 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007167/0.1277, allocations: 3.618 MB / 422.6 MB, free: 8.234 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001679/0.1294, allocations: 67.75 kB / 422.7 MB, free: 8.168 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002615/0.1321, allocations: 0.815 MB / 423.5 MB, free: 7.348 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003216/0.1353, allocations: 0.854 MB / 424.4 MB, free: 6.488 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001531/0.1369, allocations: 463.3 kB / 424.8 MB, free: 6.035 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004397/0.1413, allocations: 2.933 MB / 427.8 MB, free: 3.086 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004219/0.1455, allocations: 2.727 MB / 430.5 MB, free: 304 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1837/0.3293, allocations: 1.371 MB / 431.9 MB, free: 7.684 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002039/0.3314, allocations: 1.746 MB / 433.6 MB, free: 7.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004799/0.3319, allocations: 377.2 kB / 434 MB, free: 7.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007975/0.3327, allocations: 472.1 kB / 434.4 MB, free: 7.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001126/0.3338, allocations: 1.073 MB / 435.5 MB, free: 7.316 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003048/0.3369, allocations: 1.672 MB / 437.2 MB, free: 6.871 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006561/0.3434, allocations: 4.901 MB / 442.1 MB, free: 6.262 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.044e-06/0.3435, allocations: 0 / 442.1 MB, free: 6.262 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3435, allocations: 0 / 442.1 MB, free: 6.262 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001641/0.3437, allocations: 0 / 442.1 MB, free: 6.262 MB / 350.1 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.00796/0.3516, allocations: 3.471 MB / 445.6 MB, free: 4.797 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.3517, allocations: 9.344 kB / 445.6 MB, free: 4.797 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008722/0.3526, allocations: 359.2 kB / 445.9 MB, free: 4.621 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002976/0.3555, allocations: 1.831 MB / 447.8 MB, free: 4.102 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001482/0.3557, allocations: 187 kB / 447.9 MB, free: 4.094 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003776/0.3561, allocations: 255.4 kB / 448.2 MB, free: 4.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005154/0.3613, allocations: 3.284 MB / 451.5 MB, free: 3.855 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.681e-05/0.3613, allocations: 6.672 kB / 451.5 MB, free: 3.855 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002327/0.3616, allocations: 103.3 kB / 451.6 MB, free: 3.855 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001367/0.3617, allocations: 127.8 kB / 451.7 MB, free: 3.848 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004174/0.3659, allocations: 2.754 MB / 454.5 MB, free: 3.375 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01505/0.381, allocations: 10.41 MB / 464.9 MB, free: 11.88 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001842/0.3829, allocations: 1.361 MB / 466.2 MB, free: 11.04 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001158/0.384, allocations: 0.7618 MB / 467 MB, free: 10.66 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003195/0.3844, allocations: 207.9 kB / 467.2 MB, free: 10.45 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.69e-05/0.3844, allocations: 50.78 kB / 467.2 MB, free: 10.4 MB / 366.1 MB Notification: Performance of pre-optimization done (n=98): time 3.336e-06/0.3844, allocations: 0 / 467.2 MB, free: 10.4 MB / 366.1 MB Notification: Performance of matching and sorting (n=123): time 0.01635/0.4008, allocations: 6.943 MB / 474.2 MB, free: 4.906 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.231e-05/0.4009, allocations: 64.41 kB / 474.2 MB, free: 4.828 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003276/0.4042, allocations: 1.797 MB / 476 MB, free: 3.031 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002033/0.4044, allocations: 49.55 kB / 476.1 MB, free: 2.98 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001094/0.4055, allocations: 1.297 MB / 477.4 MB, free: 1.676 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005113/0.406, allocations: 458.1 kB / 477.8 MB, free: 1.234 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005274/0.4066, allocations: 295.4 kB / 478.1 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001384/0.4067, allocations: 309.1 kB / 478.4 MB, free: 0.6328 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001344/0.4081, allocations: 0.7774 MB / 479.2 MB, free: 15.86 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001783/0.4099, allocations: 1.291 MB / 480.5 MB, free: 14.34 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003181/0.413, allocations: 2.21 MB / 482.7 MB, free: 11.97 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.137e-05/0.4131, allocations: 8 kB / 482.7 MB, free: 11.96 MB / 382.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004622/0.4177, allocations: 2.473 MB / 485.2 MB, free: 9.566 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.482e-05/0.4178, allocations: 13.72 kB / 485.2 MB, free: 9.555 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.229e-05/0.4178, allocations: 20 kB / 485.2 MB, free: 9.535 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007081/0.4185, allocations: 244.3 kB / 485.5 MB, free: 9.289 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001498/0.42, allocations: 420.4 kB / 485.9 MB, free: 8.902 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00327/0.4233, allocations: 3.229 MB / 489.1 MB, free: 5.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0018/0.4251, allocations: 131.8 kB / 489.2 MB, free: 5.281 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001447/0.4253, allocations: 71.98 kB / 489.3 MB, free: 5.211 MB / 382.1 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.001629/0.4269, allocations: 0.8235 MB / 490.1 MB, free: 4.406 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004676/0.4274, allocations: 199.8 kB / 490.3 MB, free: 4.211 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00362/0.431, allocations: 2.042 MB / 492.4 MB, free: 2.148 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.205e-05/0.431, allocations: 15.94 kB / 492.4 MB, free: 2.133 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.4311, allocations: 0 / 492.4 MB, free: 2.133 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.137e-05/0.4311, allocations: 3.984 kB / 492.4 MB, free: 2.129 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008343/0.4394, allocations: 4.744 MB / 497.1 MB, free: 13.34 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.03e-05/0.4395, allocations: 4 kB / 497.1 MB, free: 13.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001113/0.4406, allocations: 261 kB / 497.4 MB, free: 13.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006202/0.4412, allocations: 209.4 kB / 497.6 MB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001059/0.4414, allocations: 27.98 kB / 497.6 MB, free: 12.85 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002967/0.4443, allocations: 3.211 MB / 0.4891 GB, free: 9.387 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.813e-06/0.4444, allocations: 7.938 kB / 0.4891 GB, free: 9.379 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005175/0.4495, allocations: 3.14 MB / 0.4922 GB, free: 6.191 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00125/0.4508, allocations: 431.8 kB / 0.4926 GB, free: 5.75 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006503/0.4515, allocations: 27.98 kB / 0.4926 GB, free: 5.723 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001398/0.4529, allocations: 91.88 kB / 0.4927 GB, free: 5.633 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002438/0.4531, allocations: 91.61 kB / 0.4928 GB, free: 5.543 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.622e-05/0.4533, allocations: 35.98 kB / 0.4928 GB, free: 5.508 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002921/0.4562, allocations: 1.216 MB / 0.494 GB, free: 4.301 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4562, allocations: 0 / 0.494 GB, free: 4.301 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002495/0.4587, allocations: 491.9 kB / 0.4945 GB, free: 3.82 MB / 398.1 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.0005173/0.4592, allocations: 199.5 kB / 0.4947 GB, free: 3.637 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004181/0.4634, allocations: 2.352 MB / 0.4969 GB, free: 1.277 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.4634, allocations: 1.875 kB / 0.4969 GB, free: 1.277 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00219/0.4656, allocations: 1.337 MB / 0.4983 GB, free: 15.9 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003154/0.4688, allocations: 0.4971 MB / 0.4987 GB, free: 15.43 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01063/0.4794, allocations: 4.989 MB / 0.5036 GB, free: 10.38 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002774/0.4823, allocations: 1.978 MB / 0.5055 GB, free: 8.371 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008642/0.4832, allocations: 151.4 kB / 0.5057 GB, free: 8.223 MB / 414.1 MB Notification: Performance of SimCode: time 1.302e-06/0.4832, allocations: 0 / 0.5057 GB, free: 8.223 MB / 414.1 MB Notification: Performance of Templates: time 0.1017/0.5849, allocations: 82.85 MB / 0.5866 GB, free: 5.418 MB / 494.1 MB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 12.885539387934841]