Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.00204/0.00204, allocations: 87.94 kB / 20.96 MB, free: 3.316 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.001853/0.001853, allocations: 145.1 kB / 24.26 MB, free: 28 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.53/1.53, allocations: 173.4 MB / 200.8 MB, free: 9.32 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.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.453e-06/1.453e-06, allocations: 0 / 267.3 MB, free: 6.723 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.608e-05/2.753e-05, allocations: 6.312 kB / 267.3 MB, free: 6.715 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.02154/0.02156, allocations: 14.87 MB / 282.2 MB, free: 7.777 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01185/0.03341, allocations: 5.01 MB / 287.2 MB, free: 2.75 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002451/0.03586, allocations: 123.2 kB / 287.3 MB, free: 2.629 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003174/0.03904, allocations: 1.063 MB / 288.4 MB, free: 1.559 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004477/0.04352, allocations: 1.343 MB / 289.7 MB, free: 212 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.1378/0.1813, allocations: 0.8699 MB / 290.6 MB, free: 15.75 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006286/0.1876, allocations: 3.761 MB / 294.4 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003316/0.1909, allocations: 1.852 MB / 296.2 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005876/0.1968, allocations: 2.63 MB / 298.9 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004308/0.2011, allocations: 1.895 MB / 300.8 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001274/0.2023, allocations: 476.9 kB / 301.2 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00227/0.2046, allocations: 0.6656 MB / 301.9 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009491/0.2056, allocations: 1.195 MB / 303.1 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002343/0.2079, allocations: 1.393 MB / 304.5 MB, free: 12.43 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00501/0.2129, allocations: 6.366 MB / 310.8 MB, free: 9.008 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.2129, allocations: 0 / 310.8 MB, free: 9.008 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2129, allocations: 0 / 310.8 MB, free: 9.008 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.47e-05/0.213, allocations: 0 / 310.8 MB, free: 9.008 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.009061/0.2221, allocations: 4.819 MB / 315.7 MB, free: 5.77 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.397e-05/0.2221, allocations: 11.36 kB / 315.7 MB, free: 5.77 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003133/0.2253, allocations: 0.9881 MB / 316.7 MB, free: 4.887 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003709/0.229, allocations: 2.146 MB / 318.8 MB, free: 2.797 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001305/0.2291, allocations: 237.8 kB / 319 MB, free: 2.566 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003777/0.2295, allocations: 315.5 kB / 319.3 MB, free: 2.262 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006625/0.2361, allocations: 4.072 MB / 323.4 MB, free: 14.11 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.618e-05/0.2362, allocations: 3.953 kB / 323.4 MB, free: 14.1 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003085/0.2365, allocations: 138.1 kB / 323.6 MB, free: 13.97 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001795/0.2367, allocations: 146.2 kB / 323.7 MB, free: 13.82 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005875/0.2425, allocations: 2.806 MB / 326.5 MB, free: 11.02 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03044/0.273, allocations: 17.34 MB / 343.8 MB, free: 9.027 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003436/0.2764, allocations: 1.439 MB / 345.3 MB, free: 7.633 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001528/0.2779, allocations: 0.7173 MB / 346 MB, free: 6.914 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005158/0.2831, allocations: 2.039 MB / 348 MB, free: 4.871 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.166e-05/0.2832, allocations: 53.84 kB / 348.1 MB, free: 4.812 MB / 298.7 MB Notification: Performance of pre-optimization done (n=108): time 3.296e-06/0.2832, allocations: 0 / 348.1 MB, free: 4.812 MB / 298.7 MB Notification: Performance of matching and sorting (n=142): time 0.01214/0.2953, allocations: 4.666 MB / 352.8 MB, free: 144 kB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.615e-05/0.2954, allocations: 72.19 kB / 352.8 MB, free: 60 kB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003484/0.2989, allocations: 2.128 MB / 355 MB, free: 13.92 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001194/0.299, allocations: 49.7 kB / 355 MB, free: 13.86 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001727/0.3007, allocations: 1.767 MB / 356.8 MB, free: 12.09 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005906/0.3013, allocations: 0.5519 MB / 357.3 MB, free: 11.54 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007077/0.302, allocations: 433.1 kB / 357.7 MB, free: 11.11 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002299/0.3022, allocations: 476.8 kB / 358.2 MB, free: 10.64 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001067/0.3033, allocations: 0.5154 MB / 358.7 MB, free: 10.12 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002008/0.3053, allocations: 1.483 MB / 360.2 MB, free: 8.27 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00334/0.3086, allocations: 2.181 MB / 362.4 MB, free: 5.805 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.274e-05/0.3087, allocations: 4 kB / 362.4 MB, free: 5.801 MB / 314.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004289/0.313, allocations: 2.078 MB / 364.5 MB, free: 3.824 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.257e-05/0.313, allocations: 12 kB / 364.5 MB, free: 3.812 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.066e-05/0.313, allocations: 24.12 kB / 364.5 MB, free: 3.789 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004093/0.3134, allocations: 130.8 kB / 364.6 MB, free: 3.652 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001856/0.3153, allocations: 484.3 kB / 365.1 MB, free: 3.207 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001537/0.3168, allocations: 1.812 MB / 366.9 MB, free: 1.289 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00153/0.3183, allocations: 107.9 kB / 367 MB, free: 1.184 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000167/0.3185, allocations: 83.98 kB / 367.1 MB, free: 1.102 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (232): * Single equations (assignments): 229 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00162/0.3201, allocations: 0.8535 MB / 368 MB, free: 272 kB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004701/0.3206, allocations: 242.7 kB / 368.2 MB, free: 28 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003107/0.3237, allocations: 1.468 MB / 369.7 MB, free: 14.54 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.418e-05/0.3237, allocations: 12 kB / 369.7 MB, free: 14.53 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.3237, allocations: 0 / 369.7 MB, free: 14.53 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.362e-05/0.3237, allocations: 3.984 kB / 369.7 MB, free: 14.52 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009487/0.3332, allocations: 4.685 MB / 374.4 MB, free: 9.793 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.906e-06/0.3332, allocations: 4 kB / 374.4 MB, free: 9.789 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001454/0.3347, allocations: 302.4 kB / 374.7 MB, free: 9.508 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003391/0.335, allocations: 107.2 kB / 374.8 MB, free: 9.391 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.244e-05/0.3351, allocations: 35.98 kB / 374.8 MB, free: 9.355 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001441/0.3366, allocations: 1.759 MB / 376.6 MB, free: 7.48 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.571e-06/0.3366, allocations: 7.469 kB / 376.6 MB, free: 7.477 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004417/0.341, allocations: 2.308 MB / 378.9 MB, free: 5.105 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00106/0.342, allocations: 354.6 kB / 379.2 MB, free: 4.758 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000244/0.3423, allocations: 24 kB / 379.2 MB, free: 4.734 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001007/0.3433, allocations: 79.91 kB / 379.3 MB, free: 4.656 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002265/0.3435, allocations: 100.5 kB / 379.4 MB, free: 4.562 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.64e-05/0.3436, allocations: 40 kB / 379.5 MB, free: 4.523 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002172/0.3458, allocations: 1.191 MB / 380.7 MB, free: 3.34 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3458, allocations: 0 / 380.7 MB, free: 3.34 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001922/0.3477, allocations: 0.5312 MB / 381.2 MB, free: 2.809 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(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.0003496/0.3481, allocations: 173.2 kB / 381.4 MB, free: 2.645 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003444/0.3515, allocations: 1.706 MB / 383.1 MB, free: 0.9805 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.3515, allocations: 0 / 383.1 MB, free: 0.9805 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001606/0.3531, allocations: 0.8857 MB / 383.9 MB, free: 100 kB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002352/0.3555, allocations: 484.9 kB / 384.4 MB, free: 15.64 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0102/0.3657, allocations: 5.267 MB / 389.7 MB, free: 10.29 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002163/0.3678, allocations: 1.608 MB / 391.3 MB, free: 8.645 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001609/0.3694, allocations: 420.4 kB / 391.7 MB, free: 8.23 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004597/0.3699, allocations: 144.5 kB / 391.8 MB, free: 8.086 MB / 346.7 MB Notification: Performance of SimCode: time 1.643e-06/0.3699, allocations: 4 kB / 391.9 MB, free: 8.082 MB / 346.7 MB Notification: Performance of Templates: time 0.05014/0.42, allocations: 24.38 MB / 416.2 MB, free: 136 kB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.6532326670130715]