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.002504/0.002504, allocations: 103.5 kB / 20.97 MB, free: 3.453 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.002613/0.002613, allocations: 156.8 kB / 24.27 MB, free: 156 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 1.708/1.708, allocations: 177 MB / 204.4 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 178] 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.1.|smpm.is.2.|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.1.|smpm.is.2.|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.402e-06/1.402e-06, allocations: 0 / 272.2 MB, free: 1.785 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.499e-05/2.639e-05, allocations: 2.312 kB / 272.2 MB, free: 1.781 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01554/0.01557, allocations: 10.73 MB / 282.9 MB, free: 7 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.008313/0.02388, allocations: 3.61 MB / 286.6 MB, free: 3.375 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001728/0.02561, allocations: 83.44 kB / 286.6 MB, free: 3.293 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002426/0.02804, allocations: 0.8304 MB / 287.5 MB, free: 2.457 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003218/0.03125, allocations: 0.9468 MB / 288.4 MB, free: 1.504 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001195/0.03245, allocations: 463.2 kB / 288.9 MB, free: 1.051 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1148/0.1473, allocations: 3.036 MB / 291.9 MB, free: 15.64 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002926/0.1502, allocations: 1.514 MB / 293.4 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003469/0.1537, allocations: 2.088 MB / 295.5 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002629/0.1563, allocations: 1.645 MB / 297.2 MB, free: 15.17 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007228/0.157, allocations: 373.9 kB / 297.5 MB, free: 15.17 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001124/0.1581, allocations: 480.2 kB / 298 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001202/0.1593, allocations: 1.133 MB / 299.1 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001587/0.1609, allocations: 1.151 MB / 300.3 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004843/0.1658, allocations: 4.984 MB / 305.3 MB, free: 11.99 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.654e-06/0.1658, allocations: 0 / 305.3 MB, free: 11.99 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.1658, allocations: 3.5 kB / 305.3 MB, free: 11.99 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.000148/0.1659, allocations: 1.438 kB / 305.3 MB, free: 11.99 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.007099/0.173, allocations: 3.84 MB / 309.1 MB, free: 9.379 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/0.1731, allocations: 13.81 kB / 309.1 MB, free: 9.379 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001183/0.1742, allocations: 0.5591 MB / 309.7 MB, free: 9.113 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003129/0.1774, allocations: 1.705 MB / 311.4 MB, free: 8.039 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001107/0.1775, allocations: 189.6 kB / 311.6 MB, free: 7.953 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003232/0.1778, allocations: 253.9 kB / 311.8 MB, free: 7.863 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004466/0.1823, allocations: 3.055 MB / 314.9 MB, free: 5.062 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.968e-05/0.1823, allocations: 11.94 kB / 314.9 MB, free: 5.051 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002037/0.1825, allocations: 103.9 kB / 315 MB, free: 4.949 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001099/0.1827, allocations: 120.9 kB / 315.1 MB, free: 4.828 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003166/0.1858, allocations: 1.969 MB / 317.1 MB, free: 2.855 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01973/0.2056, allocations: 11.63 MB / 328.7 MB, free: 6.871 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001643/0.2072, allocations: 0.6918 MB / 329.4 MB, free: 6.184 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009792/0.2082, allocations: 407.1 kB / 329.8 MB, free: 5.777 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002513/0.2084, allocations: 52.97 kB / 329.8 MB, free: 5.727 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.819e-05/0.2085, allocations: 50.38 kB / 329.9 MB, free: 5.668 MB / 282.7 MB Notification: Performance of pre-optimization done (n=98): time 2.946e-06/0.2085, allocations: 0 / 329.9 MB, free: 5.668 MB / 282.7 MB Notification: Performance of matching and sorting (n=123): time 0.01184/0.2203, allocations: 4.102 MB / 334 MB, free: 1.555 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.481e-05/0.2204, allocations: 64.41 kB / 334 MB, free: 1.48 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003209/0.2236, allocations: 1.95 MB / 336 MB, free: 15.51 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001003/0.2237, allocations: 45.7 kB / 336 MB, free: 15.46 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001374/0.2251, allocations: 1.503 MB / 337.5 MB, free: 13.95 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005139/0.2256, allocations: 477.4 kB / 338 MB, free: 13.49 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006185/0.2262, allocations: 365.9 kB / 338.4 MB, free: 13.13 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002667/0.2265, allocations: 480.7 kB / 338.8 MB, free: 12.66 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008761/0.2273, allocations: 375.8 kB / 339.2 MB, free: 12.29 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001612/0.2289, allocations: 1.149 MB / 340.4 MB, free: 10.84 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002625/0.2316, allocations: 1.692 MB / 342 MB, free: 8.902 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.537e-05/0.2316, allocations: 8 kB / 342.1 MB, free: 8.895 MB / 298.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003682/0.2353, allocations: 1.68 MB / 343.7 MB, free: 7.297 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.32e-05/0.2353, allocations: 15.98 kB / 343.8 MB, free: 7.281 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.408e-05/0.2353, allocations: 16 kB / 343.8 MB, free: 7.266 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006013/0.2359, allocations: 150.4 kB / 343.9 MB, free: 7.109 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001555/0.2375, allocations: 416.5 kB / 344.3 MB, free: 6.727 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003612/0.2411, allocations: 3.696 MB / 348 MB, free: 2.805 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001428/0.2425, allocations: 127.8 kB / 348.1 MB, free: 2.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001398/0.2427, allocations: 71.98 kB / 348.2 MB, free: 2.609 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.001289/0.2439, allocations: 0.648 MB / 348.9 MB, free: 1.977 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004533/0.2444, allocations: 226.8 kB / 349.1 MB, free: 1.754 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002896/0.2473, allocations: 1.169 MB / 350.2 MB, free: 0.5586 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.276e-05/0.2473, allocations: 16 kB / 350.3 MB, free: 0.543 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.2473, allocations: 4 kB / 350.3 MB, free: 0.5391 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.453e-05/0.2473, allocations: 7.969 kB / 350.3 MB, free: 0.5312 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008224/0.2556, allocations: 3.846 MB / 354.1 MB, free: 12.63 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.001e-05/0.2556, allocations: 4 kB / 354.1 MB, free: 12.63 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001154/0.2567, allocations: 273.1 kB / 354.4 MB, free: 12.38 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005091/0.2572, allocations: 122.6 kB / 354.5 MB, free: 12.24 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.227e-05/0.2573, allocations: 24 kB / 354.5 MB, free: 12.21 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003408/0.2607, allocations: 3.672 MB / 358.2 MB, free: 8.312 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.593e-06/0.2607, allocations: 4 kB / 358.2 MB, free: 8.309 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003777/0.2645, allocations: 1.74 MB / 360 MB, free: 6.508 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001183/0.2657, allocations: 337.6 kB / 360.3 MB, free: 6.18 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003388/0.266, allocations: 27.94 kB / 360.3 MB, free: 6.152 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001094/0.2671, allocations: 91.88 kB / 360.4 MB, free: 6.062 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002307/0.2673, allocations: 84.39 kB / 360.5 MB, free: 5.98 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.685e-05/0.2674, allocations: 32 kB / 360.5 MB, free: 5.949 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002166/0.2696, allocations: 1.11 MB / 361.6 MB, free: 4.844 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2696, allocations: 3.938 kB / 361.6 MB, free: 4.84 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002004/0.2716, allocations: 483.9 kB / 362.1 MB, free: 4.367 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.0004811/0.2721, allocations: 198.8 kB / 362.3 MB, free: 4.176 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00355/0.2756, allocations: 1.58 MB / 363.9 MB, free: 2.613 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.152e-06/0.2756, allocations: 0 / 363.9 MB, free: 2.613 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002097/0.2777, allocations: 0.9322 MB / 364.8 MB, free: 1.664 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002596/0.2803, allocations: 478.1 kB / 365.3 MB, free: 1.219 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008746/0.2891, allocations: 4.362 MB / 369.6 MB, free: 12.77 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00183/0.2909, allocations: 1.351 MB / 371 MB, free: 11.38 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001468/0.2924, allocations: 386.8 kB / 371.4 MB, free: 11 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004486/0.2928, allocations: 139.8 kB / 371.5 MB, free: 10.87 MB / 330.7 MB Notification: Performance of SimCode: time 2.224e-06/0.2928, allocations: 0 / 371.5 MB, free: 10.87 MB / 330.7 MB Notification: Performance of Templates: time 0.04722/0.34, allocations: 24.92 MB / 396.4 MB, free: 2.383 MB / 346.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.675032939994708]