Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001445/0.001445, allocations: 80.92 kB / 22.29 MB, free: 2.207 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001457/0.001457, allocations: 167.6 kB / 25.7 MB, free: 8.438 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8976/0.8976, allocations: 158.6 MB / 187.6 MB, free: 2.777 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.w|speedSensor.flange.phi|smpm.is.[0-9,]+.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.w|speedSensor.flange.phi|smpm.is.[0-9,]+.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.122e-06/1.122e-06, allocations: 0 / 251.5 MB, free: 7.258 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.528e-05/1.64e-05, allocations: 2.312 kB / 251.5 MB, free: 7.254 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01081/0.01082, allocations: 14.42 MB / 266 MB, free: 8.758 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.008105/0.01893, allocations: 5.235 MB / 271.2 MB, free: 3.504 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001296/0.02022, allocations: 111.2 kB / 271.3 MB, free: 3.395 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001784/0.02201, allocations: 1.075 MB / 272.4 MB, free: 2.312 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002443/0.02445, allocations: 1.304 MB / 273.7 MB, free: 1 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001259/0.02571, allocations: 0.9077 MB / 274.6 MB, free: 92 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003179/0.02889, allocations: 3.773 MB / 278.4 MB, free: 12.3 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001809/0.0307, allocations: 1.869 MB / 280.2 MB, free: 10.34 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002921/0.03362, allocations: 2.963 MB / 283.2 MB, free: 7.371 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001844/0.03546, allocations: 1.777 MB / 285 MB, free: 5.59 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005817/0.03605, allocations: 468 kB / 285.4 MB, free: 5.133 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008512/0.0369, allocations: 0.6597 MB / 286.1 MB, free: 4.473 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009168/0.03781, allocations: 1.141 MB / 287.2 MB, free: 3.328 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001237/0.03905, allocations: 1.349 MB / 288.6 MB, free: 1.977 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002509/0.04156, allocations: 3.263 MB / 291.8 MB, free: 14.7 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.04156, allocations: 0 / 291.8 MB, free: 14.7 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.203e-06/0.04156, allocations: 0 / 291.8 MB, free: 14.7 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.852e-05/0.0416, allocations: 0 / 291.8 MB, free: 14.7 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.0041/0.0457, allocations: 4.035 MB / 295.9 MB, free: 10.61 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.066e-05/0.04573, allocations: 15.98 kB / 295.9 MB, free: 10.59 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001517/0.04725, allocations: 0.8475 MB / 296.7 MB, free: 9.746 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001552/0.0488, allocations: 1.355 MB / 298.1 MB, free: 8.336 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001132/0.04892, allocations: 238.7 kB / 298.3 MB, free: 8.102 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002746/0.04919, allocations: 308.3 kB / 298.6 MB, free: 7.801 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002218/0.05141, allocations: 2.295 MB / 300.9 MB, free: 5.422 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.087e-05/0.05146, allocations: 15.88 kB / 300.9 MB, free: 5.406 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001719/0.05163, allocations: 124 kB / 301.1 MB, free: 5.285 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.327e-05/0.05172, allocations: 150.2 kB / 301.2 MB, free: 5.137 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001286/0.05301, allocations: 0.9345 MB / 302.2 MB, free: 4.18 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00786/0.06087, allocations: 8.608 MB / 310.8 MB, free: 11.17 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001244/0.06211, allocations: 1.054 MB / 311.8 MB, free: 10.11 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004458/0.06256, allocations: 396.4 kB / 312.2 MB, free: 9.727 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001657/0.06422, allocations: 1.293 MB / 313.5 MB, free: 8.414 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.919e-05/0.06425, allocations: 55.5 kB / 313.5 MB, free: 8.348 MB / 298.7 MB Notification: Performance of pre-optimization done (n=107): time 2.014e-06/0.06425, allocations: 0 / 313.5 MB, free: 8.348 MB / 298.7 MB Notification: Performance of matching and sorting (n=141): time 0.004548/0.0688, allocations: 3.168 MB / 316.7 MB, free: 5.145 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.844e-05/0.06882, allocations: 68.72 kB / 316.8 MB, free: 5.066 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008315/0.06966, allocations: 1.255 MB / 318 MB, free: 3.809 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.808e-05/0.06971, allocations: 45.7 kB / 318.1 MB, free: 3.758 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004953/0.07021, allocations: 1.331 MB / 319.4 MB, free: 2.41 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002366/0.07045, allocations: 0.4996 MB / 319.9 MB, free: 1.906 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002833/0.07073, allocations: 315.3 kB / 320.2 MB, free: 1.59 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.97e-05/0.07079, allocations: 305.1 kB / 320.5 MB, free: 1.289 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002648/0.07105, allocations: 214.7 kB / 320.7 MB, free: 1.078 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004926/0.07155, allocations: 0.8147 MB / 321.5 MB, free: 15.98 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009811/0.07253, allocations: 1.208 MB / 322.7 MB, free: 14.51 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.033e-06/0.07253, allocations: 8 kB / 322.8 MB, free: 14.5 MB / 314.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.001105/0.07364, allocations: 1.123 MB / 323.9 MB, free: 13.36 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.094e-05/0.07366, allocations: 12 kB / 323.9 MB, free: 13.35 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.547e-05/0.07368, allocations: 20 kB / 323.9 MB, free: 13.33 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001604/0.07384, allocations: 86.52 kB / 324 MB, free: 13.23 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008154/0.07465, allocations: 443.5 kB / 324.4 MB, free: 12.8 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005323/0.07518, allocations: 1.201 MB / 325.6 MB, free: 11.51 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000466/0.07565, allocations: 72.06 kB / 325.7 MB, free: 11.44 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.079e-05/0.07572, allocations: 64 kB / 325.8 MB, free: 11.38 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 (231): * Single equations (assignments): 228 * 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.0003847/0.07611, allocations: 236 kB / 326 MB, free: 11.14 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001597/0.07627, allocations: 147.8 kB / 326.1 MB, free: 10.99 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008703/0.07714, allocations: 0.8004 MB / 326.9 MB, free: 10.17 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.07714, allocations: 12 kB / 326.9 MB, free: 10.16 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.868e-06/0.07715, allocations: 4 kB / 327 MB, free: 10.16 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.736e-06/0.07715, allocations: 7.969 kB / 327 MB, free: 10.15 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002414/0.07957, allocations: 2.213 MB / 329.2 MB, free: 7.867 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.07957, allocations: 0 / 329.2 MB, free: 7.867 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005931/0.08017, allocations: 275.8 kB / 329.4 MB, free: 7.598 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001293/0.08029, allocations: 62.52 kB / 329.5 MB, free: 7.527 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.573e-05/0.08034, allocations: 27.98 kB / 329.5 MB, free: 7.5 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004452/0.08079, allocations: 1.162 MB / 330.7 MB, free: 6.25 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.105e-06/0.08079, allocations: 7.875 kB / 330.7 MB, free: 6.242 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00109/0.08188, allocations: 1.146 MB / 331.8 MB, free: 5.035 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003048/0.08218, allocations: 214.7 kB / 332.1 MB, free: 4.824 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001268/0.08231, allocations: 27.94 kB / 332.1 MB, free: 4.797 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003374/0.08265, allocations: 39.98 kB / 332.1 MB, free: 4.758 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.472e-05/0.08274, allocations: 105.1 kB / 332.2 MB, free: 4.652 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.276e-05/0.08279, allocations: 28 kB / 332.3 MB, free: 4.625 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004488/0.08323, allocations: 0.6026 MB / 332.9 MB, free: 4.027 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.08323, allocations: 0 / 332.9 MB, free: 4.027 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008887/0.08412, allocations: 0.5195 MB / 333.4 MB, free: 3.508 MB / 314.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 (140): * Single equations (assignments): 137 * 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.0002452/0.08437, allocations: 144.1 kB / 333.5 MB, free: 3.359 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001116/0.08548, allocations: 0.9543 MB / 334.5 MB, free: 2.391 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.763e-05/0.08551, allocations: 25.81 kB / 334.5 MB, free: 2.367 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004382/0.08595, allocations: 0.499 MB / 335 MB, free: 1.848 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009694/0.08692, allocations: 467.5 kB / 335.5 MB, free: 1.398 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005038/0.09196, allocations: 4.799 MB / 340.3 MB, free: 12.51 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005009/0.09246, allocations: 0.6292 MB / 340.9 MB, free: 11.85 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0006015/0.09306, allocations: 272.7 kB / 341.1 MB, free: 11.58 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007049/0.09376, allocations: 483.1 kB / 341.6 MB, free: 11.11 MB / 330.7 MB Notification: Performance of SimCode: time 1.062e-06/0.09377, allocations: 0 / 341.6 MB, free: 11.11 MB / 330.7 MB Notification: Performance of Templates: time 0.1184/0.2121, allocations: 24.79 MB / 366.4 MB, free: 78.65 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/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.2166013098321855]