Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009307/0.0009307, allocations: 84.73 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009164/0.0009164, allocations: 160.2 kB / 24.91 MB, free: 8.262 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.907/0.907, allocations: 177 MB / 205.2 MB, free: 5.465 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.373e-06/1.373e-06, allocations: 0 / 273.4 MB, free: 1.223 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.623e-05/1.76e-05, allocations: 2.312 kB / 273.4 MB, free: 1.219 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01291/0.01292, allocations: 10.54 MB / 283.9 MB, free: 6.621 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00744/0.02037, allocations: 3.73 MB / 287.7 MB, free: 2.875 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001232/0.0216, allocations: 83.44 kB / 287.8 MB, free: 2.793 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001886/0.02348, allocations: 0.8305 MB / 288.6 MB, free: 1.957 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002416/0.0259, allocations: 0.9507 MB / 289.5 MB, free: 1 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009991/0.0269, allocations: 475.1 kB / 290 MB, free: 0.5352 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1003/0.1272, allocations: 3.045 MB / 293 MB, free: 15.89 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002025/0.1292, allocations: 1.542 MB / 294.6 MB, free: 15.65 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003003/0.1322, allocations: 2.487 MB / 297.1 MB, free: 15.5 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002122/0.1343, allocations: 1.499 MB / 298.6 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007245/0.135, allocations: 358.3 kB / 298.9 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000814/0.1359, allocations: 460.8 kB / 299.4 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000698/0.1366, allocations: 1.057 MB / 300.4 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001146/0.1377, allocations: 1.104 MB / 301.5 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002234/0.1399, allocations: 2.626 MB / 304.2 MB, free: 13.17 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.1399, allocations: 3.094 kB / 304.2 MB, free: 13.17 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1399, allocations: 3.75 kB / 304.2 MB, free: 13.17 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.712e-05/0.14, allocations: 0 / 304.2 MB, free: 13.17 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.002795/0.1428, allocations: 3.095 MB / 307.3 MB, free: 11.48 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.871e-05/0.1428, allocations: 10.53 kB / 307.3 MB, free: 11.47 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006262/0.1434, allocations: 460.6 kB / 307.7 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001302/0.1447, allocations: 1.304 MB / 309 MB, free: 10.73 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.341e-05/0.1448, allocations: 195.8 kB / 309.2 MB, free: 10.64 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002006/0.145, allocations: 256.2 kB / 309.5 MB, free: 10.55 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001495/0.1465, allocations: 1.853 MB / 311.3 MB, free: 9.402 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.447e-05/0.1466, allocations: 7.844 kB / 311.3 MB, free: 9.398 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000123/0.1467, allocations: 107.1 kB / 311.4 MB, free: 9.297 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.702e-05/0.1468, allocations: 120.9 kB / 311.6 MB, free: 9.176 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008895/0.1476, allocations: 0.7491 MB / 312.3 MB, free: 8.406 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005185/0.1528, allocations: 6.888 MB / 319.2 MB, free: 1.715 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004916/0.1533, allocations: 0.5223 MB / 319.7 MB, free: 1.207 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002736/0.1536, allocations: 272.1 kB / 320 MB, free: 0.9492 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001435/0.1537, allocations: 52.97 kB / 320 MB, free: 0.8984 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.928e-05/0.1538, allocations: 43.56 kB / 320.1 MB, free: 0.8438 MB / 266.7 MB Notification: Performance of pre-optimization done (n=98): time 2.845e-06/0.1538, allocations: 0 / 320.1 MB, free: 0.8438 MB / 266.7 MB Notification: Performance of matching and sorting (n=123): time 0.004616/0.1584, allocations: 2.96 MB / 323 MB, free: 13.91 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.826e-05/0.1584, allocations: 68.41 kB / 323.1 MB, free: 13.83 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008007/0.1592, allocations: 1.177 MB / 324.3 MB, free: 12.87 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.44e-05/0.1593, allocations: 45.7 kB / 324.3 MB, free: 12.82 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004374/0.1597, allocations: 1.1 MB / 325.4 MB, free: 11.78 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000222/0.1599, allocations: 444.6 kB / 325.9 MB, free: 11.37 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002582/0.1602, allocations: 277.3 kB / 326.1 MB, free: 11.12 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.368e-05/0.1602, allocations: 301.1 kB / 326.4 MB, free: 10.83 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002553/0.1605, allocations: 186.7 kB / 326.6 MB, free: 10.64 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004302/0.1609, allocations: 0.6789 MB / 327.3 MB, free: 9.781 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008006/0.1617, allocations: 1.053 MB / 328.3 MB, free: 8.605 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.225e-06/0.1617, allocations: 4 kB / 328.3 MB, free: 8.602 MB / 282.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.001156/0.1629, allocations: 1.028 MB / 329.4 MB, free: 7.66 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.092e-05/0.1629, allocations: 20.14 kB / 329.4 MB, free: 7.641 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.608e-05/0.1629, allocations: 19.98 kB / 329.4 MB, free: 7.621 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002366/0.1632, allocations: 126.2 kB / 329.5 MB, free: 7.488 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006822/0.1638, allocations: 352.3 kB / 329.9 MB, free: 7.168 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001152/0.165, allocations: 2.417 MB / 332.3 MB, free: 4.602 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004817/0.1655, allocations: 56.11 kB / 332.3 MB, free: 4.547 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.961e-05/0.1655, allocations: 63.98 kB / 332.4 MB, free: 4.484 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 {(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.0004327/0.166, allocations: 218.1 kB / 332.6 MB, free: 4.289 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001764/0.1662, allocations: 143.8 kB / 332.8 MB, free: 4.148 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008813/0.167, allocations: 0.7762 MB / 333.5 MB, free: 3.359 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.263e-06/0.167, allocations: 12 kB / 333.5 MB, free: 3.348 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.357e-06/0.167, allocations: 0 / 333.5 MB, free: 3.348 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.1671, allocations: 3.984 kB / 333.5 MB, free: 3.344 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00247/0.1695, allocations: 2.131 MB / 335.7 MB, free: 1.355 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/0.1695, allocations: 4 kB / 335.7 MB, free: 1.352 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004712/0.17, allocations: 209.8 kB / 335.9 MB, free: 1.16 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000251/0.1703, allocations: 153.1 kB / 336 MB, free: 0.9922 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.711e-05/0.1703, allocations: 20 kB / 336.1 MB, free: 0.9727 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009918/0.1713, allocations: 2.398 MB / 338.5 MB, free: 14.42 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.083e-06/0.1713, allocations: 4 kB / 338.5 MB, free: 14.42 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001132/0.1724, allocations: 1.113 MB / 339.6 MB, free: 13.27 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002926/0.1727, allocations: 226.7 kB / 339.8 MB, free: 13.05 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001083/0.1728, allocations: 24 kB / 339.8 MB, free: 13.02 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003173/0.1731, allocations: 35.98 kB / 339.9 MB, free: 12.99 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.793e-05/0.1732, allocations: 84.83 kB / 339.9 MB, free: 12.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.916e-05/0.1733, allocations: 24 kB / 340 MB, free: 12.88 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004538/0.1737, allocations: 0.5822 MB / 340.5 MB, free: 12.38 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1737, allocations: 0 / 340.5 MB, free: 12.38 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008572/0.1746, allocations: 476 kB / 341 MB, free: 11.91 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 {(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.0002453/0.1748, allocations: 177.6 kB / 341.2 MB, free: 11.74 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009876/0.1758, allocations: 0.9844 MB / 342.2 MB, free: 10.81 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.719e-05/0.1759, allocations: 25.81 kB / 342.2 MB, free: 10.78 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005109/0.1764, allocations: 0.5954 MB / 342.8 MB, free: 10.19 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009662/0.1773, allocations: 456.4 kB / 343.2 MB, free: 9.773 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00442/0.1817, allocations: 4.084 MB / 347.3 MB, free: 5.641 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004377/0.1822, allocations: 0.5678 MB / 347.9 MB, free: 5.043 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.000546/0.1827, allocations: 251 kB / 348.1 MB, free: 4.793 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006854/0.1834, allocations: 451 kB / 348.6 MB, free: 4.344 MB / 298.7 MB Notification: Performance of SimCode: time 8.82e-07/0.1834, allocations: 0 / 348.6 MB, free: 4.344 MB / 298.7 MB Notification: Performance of Templates: time 0.03109/0.2145, allocations: 24.92 MB / 373.5 MB, free: 11.93 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.1928951581940055]