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.001788/0.001788, allocations: 88.64 kB / 20.96 MB, free: 3.449 MB / 18.57 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.002056/0.002056, allocations: 149.1 kB / 24.26 MB, free: 160 kB / 18.57 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.494/1.494, allocations: 173.4 MB / 200.8 MB, free: 9.316 MB / 186.7 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 2.375e-06/2.375e-06, allocations: 0 / 267.3 MB, free: 6.727 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.495e-05/3.732e-05, allocations: 2.312 kB / 267.3 MB, free: 6.723 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01486/0.01489, allocations: 9.635 MB / 277 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007397/0.02229, allocations: 3.431 MB / 280.4 MB, free: 9.594 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00128/0.02357, allocations: 83.44 kB / 280.5 MB, free: 9.512 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002161/0.02573, allocations: 0.8149 MB / 281.3 MB, free: 8.691 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002951/0.02868, allocations: 0.9391 MB / 282.2 MB, free: 7.746 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001169/0.02985, allocations: 467.2 kB / 282.7 MB, free: 7.289 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004456/0.03431, allocations: 3.042 MB / 285.7 MB, free: 4.234 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002579/0.03689, allocations: 1.513 MB / 287.2 MB, free: 2.656 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003684/0.04057, allocations: 2.058 MB / 289.3 MB, free: 0.5938 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1256/0.1662, allocations: 1.512 MB / 290.8 MB, free: 17.85 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00127/0.1675, allocations: 372.8 kB / 291.2 MB, free: 17.85 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001595/0.169, allocations: 474.8 kB / 291.6 MB, free: 17.85 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00129/0.1703, allocations: 1.114 MB / 292.8 MB, free: 17.85 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002283/0.1726, allocations: 1.134 MB / 293.9 MB, free: 17.85 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007075/0.1797, allocations: 4.948 MB / 298.8 MB, free: 17.62 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/0.1797, allocations: 0 / 298.8 MB, free: 17.62 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1797, allocations: 0.6875 kB / 298.8 MB, free: 17.62 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001885/0.1799, allocations: 1.531 kB / 298.8 MB, free: 17.62 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.009916/0.1898, allocations: 3.365 MB / 302.2 MB, free: 16.05 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.865e-05/0.1899, allocations: 9.328 kB / 302.2 MB, free: 16.05 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001591/0.1915, allocations: 0.5511 MB / 302.8 MB, free: 15.79 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003924/0.1954, allocations: 1.828 MB / 304.6 MB, free: 14.7 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001644/0.1955, allocations: 187.6 kB / 304.8 MB, free: 14.62 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004871/0.196, allocations: 259.3 kB / 305 MB, free: 14.53 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006341/0.2024, allocations: 3.353 MB / 308.4 MB, free: 12.51 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.092e-05/0.2025, allocations: 7.016 kB / 308.4 MB, free: 12.5 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002472/0.2027, allocations: 108.9 kB / 308.5 MB, free: 12.42 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001169/0.2028, allocations: 127.6 kB / 308.6 MB, free: 12.4 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004442/0.2073, allocations: 2.743 MB / 311.4 MB, free: 11 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01393/0.2212, allocations: 9.21 MB / 320.6 MB, free: 2.746 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0014/0.2226, allocations: 1.058 MB / 321.6 MB, free: 1.688 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009529/0.2235, allocations: 0.707 MB / 322.3 MB, free: 0.9727 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002186/0.2238, allocations: 56.97 kB / 322.4 MB, free: 0.918 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.764e-05/0.2238, allocations: 43.55 kB / 322.4 MB, free: 0.8672 MB / 266.7 MB Notification: Performance of pre-optimization done (n=98): time 2.765e-06/0.2238, allocations: 0 / 322.4 MB, free: 0.8672 MB / 266.7 MB Notification: Performance of matching and sorting (n=123): time 0.01702/0.2408, allocations: 6.666 MB / 329.1 MB, free: 10.21 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.71e-05/0.2409, allocations: 68.41 kB / 329.2 MB, free: 10.13 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003124/0.244, allocations: 1.637 MB / 330.8 MB, free: 8.484 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000202/0.2442, allocations: 49.7 kB / 330.9 MB, free: 8.43 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001327/0.2455, allocations: 1.323 MB / 332.2 MB, free: 7.102 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005489/0.2461, allocations: 433.2 kB / 332.6 MB, free: 6.684 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006045/0.2467, allocations: 299.4 kB / 332.9 MB, free: 6.383 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002276/0.2469, allocations: 305.1 kB / 333.2 MB, free: 6.082 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001447/0.2484, allocations: 0.7726 MB / 334 MB, free: 5.312 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001863/0.2502, allocations: 1.298 MB / 335.3 MB, free: 3.793 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003456/0.2537, allocations: 2.211 MB / 337.5 MB, free: 1.422 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.298e-05/0.2537, allocations: 4 kB / 337.5 MB, free: 1.418 MB / 282.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.005385/0.2591, allocations: 2.551 MB / 340 MB, free: 14.96 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.282e-05/0.2591, allocations: 16.03 kB / 340 MB, free: 14.94 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.836e-05/0.2592, allocations: 16 kB / 340.1 MB, free: 14.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007663/0.2599, allocations: 239.2 kB / 340.3 MB, free: 14.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001589/0.2615, allocations: 419.8 kB / 340.7 MB, free: 14.29 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003396/0.2649, allocations: 2.992 MB / 343.7 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001807/0.2667, allocations: 127.8 kB / 343.8 MB, free: 11 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001566/0.2669, allocations: 70.73 kB / 343.9 MB, free: 10.93 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.001824/0.2687, allocations: 0.8142 MB / 344.7 MB, free: 10.13 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006055/0.2693, allocations: 230.4 kB / 344.9 MB, free: 9.91 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004034/0.2733, allocations: 2.037 MB / 347 MB, free: 7.859 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.505e-05/0.2733, allocations: 12 kB / 347 MB, free: 7.848 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.826e-06/0.2734, allocations: 4 kB / 347 MB, free: 7.844 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.256e-05/0.2734, allocations: 3.984 kB / 347 MB, free: 7.84 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008621/0.282, allocations: 4.107 MB / 351.1 MB, free: 3.699 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.087e-06/0.282, allocations: 4 kB / 351.1 MB, free: 3.695 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00118/0.2832, allocations: 266.5 kB / 351.4 MB, free: 3.445 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006288/0.2838, allocations: 207.5 kB / 351.6 MB, free: 3.23 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.62e-05/0.2839, allocations: 24 kB / 351.6 MB, free: 3.207 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003246/0.2871, allocations: 2.965 MB / 354.6 MB, free: 56 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/0.2872, allocations: 6.844 kB / 354.6 MB, free: 52 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005551/0.2927, allocations: 3.164 MB / 357.7 MB, free: 12.84 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001104/0.2938, allocations: 346.7 kB / 358.1 MB, free: 12.5 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002341/0.294, allocations: 27.94 kB / 358.1 MB, free: 12.47 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009476/0.295, allocations: 95.86 kB / 358.2 MB, free: 12.38 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002068/0.2952, allocations: 80.41 kB / 358.3 MB, free: 12.3 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.83e-05/0.2953, allocations: 32 kB / 358.3 MB, free: 12.27 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001937/0.2972, allocations: 1.098 MB / 359.4 MB, free: 11.18 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2972, allocations: 0 / 359.4 MB, free: 11.18 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001897/0.2991, allocations: 480 kB / 359.9 MB, free: 10.71 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.0004762/0.2996, allocations: 205.8 kB / 360.1 MB, free: 10.51 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004052/0.3036, allocations: 2.125 MB / 362.2 MB, free: 8.414 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.3037, allocations: 0.9375 kB / 362.2 MB, free: 8.414 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001997/0.3056, allocations: 1.126 MB / 363.3 MB, free: 7.281 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002423/0.3081, allocations: 476.2 kB / 363.8 MB, free: 6.84 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009242/0.3173, allocations: 4.95 MB / 368.7 MB, free: 1.82 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002008/0.3193, allocations: 1.434 MB / 370.2 MB, free: 360 kB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001773/0.3211, allocations: 494.9 kB / 370.6 MB, free: 15.86 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004882/0.3216, allocations: 132.4 kB / 370.8 MB, free: 15.73 MB / 330.7 MB Notification: Performance of SimCode: time 1.282e-06/0.3216, allocations: 0 / 370.8 MB, free: 15.73 MB / 330.7 MB Notification: Performance of Templates: time 0.0505/0.3721, allocations: 24.82 MB / 395.6 MB, free: 7.32 MB / 346.7 MB " [Timeout remaining time 660] 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 5.433804241940379]