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.001328/0.001328, allocations: 91.5 kB / 21.2 MB, free: 3.371 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.001425/0.001425, allocations: 156.5 kB / 24.55 MB, free: 16 kB / 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.9906/0.9906, allocations: 177 MB / 204.8 MB, free: 5.562 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.443e-06/1.443e-06, allocations: 0 / 272.9 MB, free: 1.406 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.532e-05/1.676e-05, allocations: 2.312 kB / 272.9 MB, free: 1.402 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.008511/0.008528, allocations: 10.83 MB / 283.8 MB, free: 6.516 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005205/0.01373, allocations: 3.618 MB / 287.4 MB, free: 2.883 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001024/0.01476, allocations: 83.44 kB / 287.5 MB, free: 2.801 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001981/0.01674, allocations: 0.8226 MB / 288.3 MB, free: 1.973 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002132/0.01887, allocations: 0.9468 MB / 289.2 MB, free: 1.02 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009667/0.01984, allocations: 471.1 kB / 289.7 MB, free: 0.5586 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1293/0.1492, allocations: 3.047 MB / 292.7 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001953/0.1511, allocations: 1.518 MB / 294.3 MB, free: 14.97 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002974/0.1541, allocations: 2.505 MB / 296.8 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002033/0.1561, allocations: 1.496 MB / 298.3 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000816/0.1569, allocations: 359.4 kB / 298.6 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008035/0.1577, allocations: 459.5 kB / 299.1 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000677/0.1584, allocations: 1.064 MB / 300.1 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001117/0.1595, allocations: 1.102 MB / 301.2 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002134/0.1617, allocations: 2.625 MB / 303.9 MB, free: 12.87 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.1617, allocations: 3.031 kB / 303.9 MB, free: 12.87 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1617, allocations: 0 / 303.9 MB, free: 12.87 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.42e-05/0.1617, allocations: 2.344 kB / 303.9 MB, free: 12.87 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.003166/0.1649, allocations: 3.472 MB / 307.3 MB, free: 10.82 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.972e-05/0.1649, allocations: 6.875 kB / 307.3 MB, free: 10.82 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000651/0.1656, allocations: 0.5674 MB / 307.9 MB, free: 10.56 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001516/0.1671, allocations: 1.774 MB / 309.7 MB, free: 9.648 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.659e-05/0.1672, allocations: 187.2 kB / 309.9 MB, free: 9.562 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001931/0.1674, allocations: 247.3 kB / 310.1 MB, free: 9.48 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002107/0.1695, allocations: 1.988 MB / 312.1 MB, free: 8.129 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.749e-05/0.1695, allocations: 11.61 kB / 312.1 MB, free: 8.121 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001274/0.1697, allocations: 103.9 kB / 312.2 MB, free: 8.02 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.243e-05/0.1697, allocations: 120.9 kB / 312.3 MB, free: 7.898 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001468/0.1712, allocations: 0.9353 MB / 313.3 MB, free: 6.953 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0063/0.1775, allocations: 8.498 MB / 321.8 MB, free: 14.34 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007791/0.1783, allocations: 0.5874 MB / 322.3 MB, free: 13.75 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004498/0.1787, allocations: 329 kB / 322.7 MB, free: 13.43 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001545/0.1789, allocations: 52.97 kB / 322.7 MB, free: 13.38 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.085e-05/0.1789, allocations: 50.39 kB / 322.8 MB, free: 13.31 MB / 282.7 MB Notification: Performance of pre-optimization done (n=98): time 2.134e-06/0.1789, allocations: 4 kB / 322.8 MB, free: 13.31 MB / 282.7 MB Notification: Performance of matching and sorting (n=123): time 0.005106/0.184, allocations: 3.543 MB / 326.3 MB, free: 9.762 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.19e-05/0.184, allocations: 64.41 kB / 326.4 MB, free: 9.688 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001248/0.1853, allocations: 1.431 MB / 327.8 MB, free: 8.238 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.749e-05/0.1854, allocations: 45.7 kB / 327.9 MB, free: 8.188 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006567/0.186, allocations: 1.417 MB / 329.3 MB, free: 6.766 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002393/0.1862, allocations: 444.5 kB / 329.7 MB, free: 6.336 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002845/0.1865, allocations: 301.1 kB / 330 MB, free: 6.031 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.819e-05/0.1866, allocations: 480.8 kB / 330.5 MB, free: 5.559 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003984/0.187, allocations: 239.8 kB / 330.7 MB, free: 5.324 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006911/0.1877, allocations: 0.9784 MB / 331.7 MB, free: 4.039 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001176/0.1889, allocations: 1.361 MB / 333 MB, free: 2.434 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.364e-06/0.1889, allocations: 4 kB / 333 MB, free: 2.43 MB / 282.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.001644/0.1905, allocations: 1.424 MB / 334.5 MB, free: 1.09 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.17e-05/0.1906, allocations: 12 kB / 334.5 MB, free: 1.078 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.575e-05/0.1906, allocations: 19.31 kB / 334.5 MB, free: 1.062 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002759/0.1909, allocations: 126.6 kB / 334.6 MB, free: 0.9219 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000739/0.1916, allocations: 395.8 kB / 335 MB, free: 0.5625 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001442/0.193, allocations: 3.556 MB / 338.6 MB, free: 12.79 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004937/0.1935, allocations: 95.86 kB / 338.7 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.427e-05/0.1936, allocations: 71.98 kB / 338.7 MB, free: 12.63 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 {(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.0003623/0.194, allocations: 261.2 kB / 339 MB, free: 12.39 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001971/0.1942, allocations: 226.9 kB / 339.2 MB, free: 12.16 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001211/0.1954, allocations: 1.013 MB / 340.2 MB, free: 11.13 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.642e-06/0.1954, allocations: 12 kB / 340.2 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.1954, allocations: 4 kB / 340.2 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.135e-06/0.1954, allocations: 7.922 kB / 340.2 MB, free: 11.11 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003325/0.1987, allocations: 3.046 MB / 343.3 MB, free: 8.012 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.469e-06/0.1987, allocations: 4.281 kB / 343.3 MB, free: 8.008 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000531/0.1993, allocations: 234.3 kB / 343.5 MB, free: 7.789 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000215/0.1995, allocations: 114.2 kB / 343.6 MB, free: 7.664 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.918e-05/0.1995, allocations: 27.94 kB / 343.7 MB, free: 7.637 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001302/0.2008, allocations: 3.516 MB / 347.2 MB, free: 3.895 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.2008, allocations: 7.984 kB / 347.2 MB, free: 3.887 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001584/0.2024, allocations: 1.479 MB / 348.7 MB, free: 2.336 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003406/0.2028, allocations: 298.7 kB / 349 MB, free: 2.043 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001093/0.2029, allocations: 24 kB / 349 MB, free: 2.02 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000366/0.2032, allocations: 63.92 kB / 349 MB, free: 1.957 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001092/0.2033, allocations: 92.16 kB / 349.1 MB, free: 1.871 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.276e-05/0.2034, allocations: 32 kB / 349.2 MB, free: 1.84 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0007552/0.2041, allocations: 0.8098 MB / 350 MB, free: 1.031 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2041, allocations: 0 / 350 MB, free: 1.031 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008104/0.2049, allocations: 471.9 kB / 350.4 MB, free: 0.5703 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.000256/0.2052, allocations: 189.2 kB / 350.6 MB, free: 400 kB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001378/0.2066, allocations: 1.301 MB / 351.9 MB, free: 15.11 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.2066, allocations: 0.5 kB / 351.9 MB, free: 15.11 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006882/0.2073, allocations: 0.8195 MB / 352.7 MB, free: 14.27 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001089/0.2084, allocations: 455.8 kB / 353.2 MB, free: 13.84 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004441/0.2128, allocations: 4.173 MB / 357.4 MB, free: 9.59 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004552/0.2133, allocations: 0.6497 MB / 358 MB, free: 8.914 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0006554/0.2139, allocations: 386.8 kB / 358.4 MB, free: 8.531 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000252/0.2142, allocations: 128.5 kB / 358.5 MB, free: 8.406 MB / 314.7 MB Notification: Performance of SimCode: time 1.022e-06/0.2142, allocations: 0 / 358.5 MB, free: 8.406 MB / 314.7 MB Notification: Performance of Templates: time 0.0275/0.2417, allocations: 24.33 MB / 382.8 MB, free: 0.5273 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.329794678837061]