Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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.001282/0.001282, allocations: 85.95 kB / 22.21 MB, free: 2.289 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.001372/0.001372, allocations: 161.2 kB / 25.6 MB, free: 8.895 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.8903/0.8903, allocations: 158.6 MB / 187.5 MB, free: 2.809 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.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smee.is.[0-9,]+.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smee.is.[0-9,]+.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.424e-06/2.424e-06, allocations: 0 / 251.5 MB, free: 7.32 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.737e-05/2.98e-05, allocations: 2.312 kB / 251.5 MB, free: 7.316 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.009042/0.009072, allocations: 10.46 MB / 261.9 MB, free: 12.8 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.006056/0.01513, allocations: 3.599 MB / 265.5 MB, free: 9.191 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001236/0.01636, allocations: 79.44 kB / 265.6 MB, free: 9.113 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001435/0.0178, allocations: 0.8071 MB / 266.4 MB, free: 8.301 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002024/0.01982, allocations: 0.9662 MB / 267.4 MB, free: 7.328 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007418/0.02056, allocations: 467.2 kB / 267.9 MB, free: 6.871 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002736/0.0233, allocations: 3.051 MB / 270.9 MB, free: 3.805 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001579/0.02488, allocations: 1.493 MB / 272.4 MB, free: 2.246 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002858/0.02774, allocations: 2.503 MB / 274.9 MB, free: 15.74 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001636/0.02937, allocations: 1.493 MB / 276.4 MB, free: 14.24 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004964/0.02987, allocations: 360 kB / 276.7 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007591/0.03063, allocations: 455.8 kB / 277.2 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006808/0.03131, allocations: 1.059 MB / 278.3 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001046/0.03236, allocations: 1.099 MB / 279.4 MB, free: 11.28 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002608/0.03496, allocations: 2.612 MB / 282 MB, free: 8.66 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.03497, allocations: 0 / 282 MB, free: 8.66 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.03497, allocations: 0 / 282 MB, free: 8.66 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.408e-05/0.03502, allocations: 0 / 282 MB, free: 8.66 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: 660 * Number of variables: 660 Notification: Performance of Generate backend data structure: time 0.003433/0.03846, allocations: 3.366 MB / 285.3 MB, free: 5.234 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.0385, allocations: 8.031 kB / 285.3 MB, free: 5.227 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006687/0.03916, allocations: 0.5535 MB / 285.9 MB, free: 4.672 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001549/0.04071, allocations: 1.536 MB / 287.4 MB, free: 3.082 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001007/0.04081, allocations: 185.4 kB / 287.6 MB, free: 2.898 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002324/0.04105, allocations: 252.3 kB / 287.9 MB, free: 2.652 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002058/0.04311, allocations: 1.829 MB / 289.7 MB, free: 0.7148 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.579e-05/0.04315, allocations: 11.94 kB / 289.7 MB, free: 0.7031 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001371/0.04329, allocations: 108 kB / 289.8 MB, free: 0.5977 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.266e-05/0.04338, allocations: 128.9 kB / 289.9 MB, free: 480 kB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001084/0.04446, allocations: 0.7479 MB / 290.7 MB, free: 15.69 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008371/0.05284, allocations: 8.422 MB / 299.1 MB, free: 6.902 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006351/0.05347, allocations: 0.4979 MB / 299.6 MB, free: 6.395 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003532/0.05382, allocations: 295.2 kB / 299.9 MB, free: 6.102 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001484/0.05397, allocations: 52.97 kB / 299.9 MB, free: 6.051 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.777e-05/0.054, allocations: 46.38 kB / 300 MB, free: 5.996 MB / 282.7 MB Notification: Performance of pre-optimization done (n=97): time 2.395e-06/0.054, allocations: 0 / 300 MB, free: 5.996 MB / 282.7 MB Notification: Performance of matching and sorting (n=122): time 0.004983/0.05899, allocations: 2.898 MB / 302.9 MB, free: 3.047 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.058e-05/0.05902, allocations: 68.41 kB / 302.9 MB, free: 2.969 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001149/0.06016, allocations: 1.386 MB / 304.3 MB, free: 1.562 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.673e-05/0.06022, allocations: 45.7 kB / 304.4 MB, free: 1.512 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006918/0.06091, allocations: 1.426 MB / 305.8 MB, free: 76 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002624/0.06118, allocations: 448.4 kB / 306.2 MB, free: 15.63 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002938/0.06147, allocations: 305 kB / 306.5 MB, free: 15.32 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.657e-05/0.06157, allocations: 480.7 kB / 307 MB, free: 14.85 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002308/0.0618, allocations: 183.8 kB / 307.2 MB, free: 14.67 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005577/0.06235, allocations: 0.9297 MB / 308.1 MB, free: 13.42 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001123/0.06348, allocations: 1.27 MB / 309.4 MB, free: 11.84 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.623e-06/0.06348, allocations: 4 kB / 309.4 MB, free: 11.83 MB / 298.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.001443/0.06493, allocations: 1.311 MB / 310.7 MB, free: 10.5 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.121e-05/0.06495, allocations: 12 kB / 310.7 MB, free: 10.49 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.608e-05/0.06496, allocations: 16 kB / 310.7 MB, free: 10.47 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002486/0.06521, allocations: 118.6 kB / 310.8 MB, free: 10.34 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006869/0.0659, allocations: 355.6 kB / 311.2 MB, free: 9.992 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001457/0.06736, allocations: 3.512 MB / 314.7 MB, free: 6.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000628/0.06799, allocations: 63.89 kB / 314.8 MB, free: 6.188 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.709e-05/0.06805, allocations: 59.98 kB / 314.8 MB, free: 6.129 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * 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.0005068/0.06856, allocations: 256 kB / 315.1 MB, free: 5.867 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002332/0.06879, allocations: 222.9 kB / 315.3 MB, free: 5.648 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001263/0.07006, allocations: 0.9083 MB / 316.2 MB, free: 4.719 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.093e-06/0.07006, allocations: 15.98 kB / 316.2 MB, free: 4.703 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.07007, allocations: 7.938 kB / 316.2 MB, free: 4.695 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.07008, allocations: 3.984 kB / 316.2 MB, free: 4.691 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002925/0.073, allocations: 2.46 MB / 318.7 MB, free: 2.129 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.588e-06/0.07301, allocations: 4.281 kB / 318.7 MB, free: 2.125 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004695/0.07348, allocations: 211.7 kB / 318.9 MB, free: 1.918 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001898/0.07367, allocations: 102.6 kB / 319 MB, free: 1.801 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.337e-05/0.07371, allocations: 27.94 kB / 319 MB, free: 1.773 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00162/0.07533, allocations: 3.477 MB / 322.5 MB, free: 14.07 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.07533, allocations: 3.938 kB / 322.5 MB, free: 14.07 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001352/0.07668, allocations: 1.335 MB / 323.8 MB, free: 12.66 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003753/0.07706, allocations: 266.7 kB / 324.1 MB, free: 12.39 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.483e-05/0.07715, allocations: 24 kB / 324.1 MB, free: 12.37 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003208/0.07747, allocations: 35.98 kB / 324.2 MB, free: 12.34 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.151e-05/0.07757, allocations: 80.78 kB / 324.2 MB, free: 12.26 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.758e-05/0.0776, allocations: 31.98 kB / 324.3 MB, free: 12.23 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005611/0.07816, allocations: 0.7428 MB / 325 MB, free: 11.49 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.07817, allocations: 0 / 325 MB, free: 11.49 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001029/0.07919, allocations: 467.9 kB / 325.5 MB, free: 11.03 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 (120): * Single equations (assignments): 116 * 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.0002541/0.07945, allocations: 194.9 kB / 325.7 MB, free: 10.83 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001163/0.08061, allocations: 1.16 MB / 326.8 MB, free: 9.633 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.08061, allocations: 4.5 kB / 326.8 MB, free: 9.629 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005572/0.08117, allocations: 0.748 MB / 327.6 MB, free: 8.828 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001044/0.08222, allocations: 443.8 kB / 328 MB, free: 8.402 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005063/0.08728, allocations: 4.127 MB / 332.1 MB, free: 4.176 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004813/0.08776, allocations: 0.6494 MB / 332.8 MB, free: 3.496 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0007003/0.08846, allocations: 247 kB / 333 MB, free: 3.25 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007404/0.0892, allocations: 0.494 MB / 333.5 MB, free: 2.754 MB / 314.7 MB Notification: Performance of SimCode: time 1.693e-06/0.0892, allocations: 3.938 kB / 333.5 MB, free: 2.75 MB / 314.7 MB Notification: Performance of Templates: time 0.1408/0.23, allocations: 24.69 MB / 358.2 MB, free: 88.95 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/SynchronousInductionMachines/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.3556683869101107]