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.001063/0.001063, allocations: 85.91 kB / 22.22 MB, free: 2.285 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.001706/0.001706, allocations: 162.9 kB / 25.61 MB, free: 8.582 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 1.018/1.018, allocations: 177 MB / 205.9 MB, free: 4.457 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.693e-06/1.693e-06, allocations: 0 / 274.1 MB, free: 4.273 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.32e-05/3.49e-05, allocations: 2.312 kB / 274.1 MB, free: 4.27 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01179/0.01183, allocations: 10.53 MB / 284.7 MB, free: 9.695 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006672/0.0185, allocations: 3.588 MB / 288.2 MB, free: 6.102 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001251/0.01975, allocations: 91.38 kB / 288.3 MB, free: 6.012 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001402/0.02115, allocations: 0.811 MB / 289.1 MB, free: 5.195 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001954/0.02311, allocations: 0.9507 MB / 290.1 MB, free: 4.238 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007621/0.02387, allocations: 479.1 kB / 290.6 MB, free: 3.77 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00245/0.02632, allocations: 3.042 MB / 293.6 MB, free: 0.7148 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001546/0.02787, allocations: 1.521 MB / 295.1 MB, free: 15.13 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002688/0.03055, allocations: 2.515 MB / 297.6 MB, free: 12.61 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001485/0.03204, allocations: 1.496 MB / 299.1 MB, free: 11.11 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003707/0.03241, allocations: 356 kB / 299.5 MB, free: 10.76 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005963/0.03301, allocations: 471.7 kB / 300 MB, free: 10.3 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006665/0.03367, allocations: 1.052 MB / 301 MB, free: 9.246 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001006/0.03468, allocations: 1.107 MB / 302.1 MB, free: 8.137 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002623/0.0373, allocations: 2.632 MB / 304.7 MB, free: 5.496 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.03731, allocations: 4 kB / 304.7 MB, free: 5.492 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.462e-06/0.03731, allocations: 0 / 304.7 MB, free: 5.492 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.796e-05/0.03736, allocations: 0 / 304.7 MB, free: 5.492 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.003634/0.04099, allocations: 3.378 MB / 308.1 MB, free: 2.055 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.601e-05/0.04103, allocations: 12.03 kB / 308.1 MB, free: 2.043 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007661/0.04179, allocations: 0.5613 MB / 308.7 MB, free: 1.48 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001736/0.04353, allocations: 1.681 MB / 310.4 MB, free: 15.75 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.938e-05/0.04363, allocations: 185.4 kB / 310.6 MB, free: 15.56 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002291/0.04386, allocations: 256.3 kB / 310.8 MB, free: 15.32 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001956/0.04581, allocations: 1.829 MB / 312.6 MB, free: 13.38 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.87e-05/0.04586, allocations: 11.94 kB / 312.6 MB, free: 13.37 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001402/0.046, allocations: 104 kB / 312.8 MB, free: 13.27 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.246e-05/0.04609, allocations: 128.9 kB / 312.9 MB, free: 13.14 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001051/0.04715, allocations: 0.7399 MB / 313.6 MB, free: 12.36 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008543/0.05569, allocations: 8.403 MB / 322 MB, free: 3.594 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006778/0.05637, allocations: 0.521 MB / 322.5 MB, free: 3.066 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003683/0.05673, allocations: 291 kB / 322.8 MB, free: 2.773 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001507/0.05688, allocations: 56.91 kB / 322.9 MB, free: 2.719 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.424e-05/0.05692, allocations: 50.39 kB / 322.9 MB, free: 2.656 MB / 298.7 MB Notification: Performance of pre-optimization done (n=98): time 3.336e-06/0.05692, allocations: 0 / 322.9 MB, free: 2.656 MB / 298.7 MB Notification: Performance of matching and sorting (n=123): time 0.00541/0.06233, allocations: 2.823 MB / 325.8 MB, free: 15.8 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.754e-05/0.06237, allocations: 68.34 kB / 325.8 MB, free: 15.72 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001277/0.06365, allocations: 1.395 MB / 327.2 MB, free: 14.3 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.33e-05/0.06371, allocations: 49.7 kB / 327.3 MB, free: 14.25 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008786/0.06459, allocations: 1.422 MB / 328.7 MB, free: 12.82 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002952/0.06488, allocations: 464.1 kB / 329.1 MB, free: 12.36 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003099/0.06519, allocations: 305 kB / 329.4 MB, free: 12.05 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.06531, allocations: 476.8 kB / 329.9 MB, free: 11.58 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002645/0.06558, allocations: 187.8 kB / 330.1 MB, free: 11.4 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006121/0.06619, allocations: 0.9183 MB / 331 MB, free: 10.16 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009987/0.06719, allocations: 1.274 MB / 332.3 MB, free: 8.578 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.185e-06/0.0672, allocations: 4 kB / 332.3 MB, free: 8.574 MB / 314.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.001606/0.0688, allocations: 1.291 MB / 333.6 MB, free: 7.258 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.569e-05/0.06883, allocations: 16.66 kB / 333.6 MB, free: 7.242 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.867e-05/0.06885, allocations: 16 kB / 333.6 MB, free: 7.227 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002795/0.06913, allocations: 126.6 kB / 333.7 MB, free: 7.086 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007482/0.06987, allocations: 351.5 kB / 334.1 MB, free: 6.742 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001835/0.07171, allocations: 3.5 MB / 337.6 MB, free: 3.016 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007805/0.07249, allocations: 71.84 kB / 337.6 MB, free: 2.945 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.429e-05/0.07256, allocations: 60 kB / 337.7 MB, free: 2.887 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.0005877/0.07315, allocations: 256 kB / 337.9 MB, free: 2.625 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003262/0.07348, allocations: 226.8 kB / 338.2 MB, free: 2.402 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001141/0.07462, allocations: 0.9085 MB / 339.1 MB, free: 1.469 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/0.07463, allocations: 12 kB / 339.1 MB, free: 1.457 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.07463, allocations: 4 kB / 339.1 MB, free: 1.453 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.107e-05/0.07464, allocations: 11.97 kB / 339.1 MB, free: 1.441 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003401/0.07804, allocations: 2.475 MB / 341.6 MB, free: 14.86 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.037e-06/0.07805, allocations: 0 / 341.6 MB, free: 14.86 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005192/0.07857, allocations: 207.7 kB / 341.8 MB, free: 14.66 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000224/0.07879, allocations: 110.9 kB / 341.9 MB, free: 14.54 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.703e-05/0.07884, allocations: 24 kB / 341.9 MB, free: 14.51 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00176/0.0806, allocations: 3.478 MB / 345.4 MB, free: 10.8 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/0.0806, allocations: 7.938 kB / 345.4 MB, free: 10.79 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00152/0.08212, allocations: 1.327 MB / 346.7 MB, free: 9.391 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004278/0.08255, allocations: 270.8 kB / 347 MB, free: 9.125 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001205/0.08267, allocations: 24 kB / 347 MB, free: 9.102 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003786/0.08305, allocations: 31.98 kB / 347 MB, free: 9.07 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001182/0.08317, allocations: 96.77 kB / 347.1 MB, free: 8.977 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.259e-05/0.08321, allocations: 24 kB / 347.2 MB, free: 8.953 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006562/0.08387, allocations: 0.747 MB / 347.9 MB, free: 8.211 MB / 330.7 MB Notification: Performance of sort global known variables: time 9e-08/0.08387, allocations: 0 / 347.9 MB, free: 8.211 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001169/0.08504, allocations: 467.9 kB / 348.4 MB, free: 7.754 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.000274/0.08531, allocations: 202.8 kB / 348.6 MB, free: 7.547 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001281/0.08659, allocations: 1.164 MB / 349.7 MB, free: 6.344 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.227e-06/0.08659, allocations: 0 / 349.7 MB, free: 6.344 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006411/0.08724, allocations: 0.7525 MB / 350.5 MB, free: 5.543 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001523/0.08876, allocations: 457.8 kB / 350.9 MB, free: 5.113 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005246/0.094, allocations: 4.135 MB / 355.1 MB, free: 0.8789 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005139/0.09452, allocations: 0.642 MB / 355.7 MB, free: 216 kB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.1071/0.2016, allocations: 249 kB / 356 MB, free: 78.87 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001106/0.2027, allocations: 0.4993 MB / 356.5 MB, free: 78.8 MB / 330.7 MB Notification: Performance of SimCode: time 2.134e-06/0.2027, allocations: 0 / 356.5 MB, free: 78.8 MB / 330.7 MB Notification: Performance of Templates: time 0.03166/0.2344, allocations: 25.31 MB / 381.8 MB, free: 63.99 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.63076257891953]