Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.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.001647/0.001647, allocations: 79.75 kB / 21.19 MB, free: 3.375 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.001205/0.001205, allocations: 165 kB / 24.56 MB, free: 8 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9876/0.9876, allocations: 177.1 MB / 205 MB, free: 5.254 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.[0-9,]+.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.1.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.[0-9,]+.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.833e-06/1.833e-06, allocations: 0 / 273 MB, free: 1.379 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.748e-05/2.932e-05, allocations: 2.312 kB / 273 MB, free: 1.375 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.0105/0.01053, allocations: 10.82 MB / 283.8 MB, free: 6.504 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006047/0.01658, allocations: 3.618 MB / 287.4 MB, free: 2.871 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009564/0.01753, allocations: 87.44 kB / 287.5 MB, free: 2.785 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001306/0.01884, allocations: 0.8148 MB / 288.3 MB, free: 1.965 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001805/0.02065, allocations: 0.9507 MB / 289.3 MB, free: 1.008 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007004/0.02135, allocations: 463.2 kB / 289.7 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1712/0.1925, allocations: 3.037 MB / 292.8 MB, free: 15.15 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001962/0.1945, allocations: 1.518 MB / 294.3 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002921/0.1974, allocations: 2.089 MB / 296.4 MB, free: 14.81 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002643/0.2001, allocations: 1.647 MB / 298 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001023/0.2011, allocations: 372.2 kB / 298.4 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001058/0.2021, allocations: 475.5 kB / 298.9 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001008/0.2031, allocations: 1.135 MB / 300 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001754/0.2049, allocations: 1.152 MB / 301.2 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002898/0.2078, allocations: 2.698 MB / 303.8 MB, free: 12.92 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.2078, allocations: 3.938 kB / 303.9 MB, free: 12.92 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.485e-06/0.2078, allocations: 0.625 kB / 303.9 MB, free: 12.92 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.916e-05/0.2079, allocations: 1.531 kB / 303.9 MB, free: 12.92 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.003813/0.2117, allocations: 3.579 MB / 307.4 MB, free: 10.88 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.2117, allocations: 9.812 kB / 307.4 MB, free: 10.88 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007514/0.2125, allocations: 0.5681 MB / 308 MB, free: 10.62 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001675/0.2141, allocations: 1.686 MB / 309.7 MB, free: 9.762 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.434e-05/0.2142, allocations: 189.2 kB / 309.9 MB, free: 9.676 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002283/0.2145, allocations: 252.7 kB / 310.1 MB, free: 9.59 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002268/0.2167, allocations: 1.994 MB / 312.1 MB, free: 8.262 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.825e-05/0.2168, allocations: 7.953 kB / 312.1 MB, free: 8.254 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001386/0.2169, allocations: 106.2 kB / 312.2 MB, free: 8.152 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.922e-05/0.217, allocations: 127.8 kB / 312.4 MB, free: 8.027 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001564/0.2186, allocations: 0.9462 MB / 313.3 MB, free: 7.07 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007484/0.226, allocations: 8.745 MB / 322.1 MB, free: 14.21 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000844/0.2269, allocations: 0.5546 MB / 322.6 MB, free: 13.66 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005005/0.2274, allocations: 333.4 kB / 322.9 MB, free: 13.33 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001758/0.2276, allocations: 52.95 kB / 323 MB, free: 13.28 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.571e-05/0.2276, allocations: 50.39 kB / 323 MB, free: 13.22 MB / 282.7 MB Notification: Performance of pre-optimization done (n=98): time 2.375e-06/0.2276, allocations: 3.938 kB / 323 MB, free: 13.21 MB / 282.7 MB Notification: Performance of matching and sorting (n=123): time 0.006228/0.2338, allocations: 3.738 MB / 326.8 MB, free: 9.469 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.899e-05/0.2339, allocations: 64.41 kB / 326.8 MB, free: 9.395 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00142/0.2353, allocations: 1.446 MB / 328.3 MB, free: 7.93 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.716e-05/0.2354, allocations: 46.36 kB / 328.3 MB, free: 7.879 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008178/0.2362, allocations: 1.401 MB / 329.7 MB, free: 6.473 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002919/0.2365, allocations: 457.2 kB / 330.2 MB, free: 6.031 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003192/0.2368, allocations: 297.1 kB / 330.5 MB, free: 5.73 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001277/0.2369, allocations: 480.8 kB / 330.9 MB, free: 5.258 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004233/0.2373, allocations: 252.5 kB / 331.2 MB, free: 5.012 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007953/0.2381, allocations: 0.9779 MB / 332.2 MB, free: 3.727 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001368/0.2395, allocations: 1.373 MB / 333.5 MB, free: 2.113 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.636e-06/0.2395, allocations: 8 kB / 333.5 MB, free: 2.105 MB / 282.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.001883/0.2414, allocations: 1.437 MB / 335 MB, free: 0.75 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.095e-05/0.2414, allocations: 12 kB / 335 MB, free: 0.7383 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.668e-05/0.2414, allocations: 16 kB / 335 MB, free: 0.7227 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003253/0.2418, allocations: 142.4 kB / 335.1 MB, free: 0.5703 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008018/0.2426, allocations: 416.2 kB / 335.5 MB, free: 192 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001841/0.2444, allocations: 3.635 MB / 339.2 MB, free: 12.33 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006452/0.245, allocations: 132.6 kB / 339.3 MB, free: 12.2 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.102e-05/0.2451, allocations: 75.92 kB / 339.4 MB, free: 12.13 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.0004578/0.2456, allocations: 267.7 kB / 339.7 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000226/0.2458, allocations: 222.8 kB / 339.9 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001342/0.2471, allocations: 1.029 MB / 340.9 MB, free: 10.61 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.648e-06/0.2472, allocations: 19.97 kB / 340.9 MB, free: 10.59 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.2472, allocations: 4 kB / 340.9 MB, free: 10.59 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.436e-06/0.2472, allocations: 7.641 kB / 340.9 MB, free: 10.58 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003991/0.2512, allocations: 3.106 MB / 344 MB, free: 7.422 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.2512, allocations: 4 kB / 344 MB, free: 7.418 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006042/0.2518, allocations: 265.3 kB / 344.3 MB, free: 7.172 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002802/0.2521, allocations: 122.9 kB / 344.4 MB, free: 7.035 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.16e-05/0.2521, allocations: 24 kB / 344.4 MB, free: 7.012 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001896/0.254, allocations: 3.607 MB / 348 MB, free: 3.176 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.254, allocations: 4 kB / 348.1 MB, free: 3.172 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001997/0.256, allocations: 1.491 MB / 349.5 MB, free: 1.613 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005283/0.2565, allocations: 330.6 kB / 349.9 MB, free: 1.289 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001162/0.2567, allocations: 27.5 kB / 349.9 MB, free: 1.266 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004609/0.2571, allocations: 91.88 kB / 350 MB, free: 1.172 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001272/0.2572, allocations: 80.84 kB / 350.1 MB, free: 1.094 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.895e-05/0.2573, allocations: 35.98 kB / 350.1 MB, free: 1.059 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0009182/0.2582, allocations: 0.833 MB / 350.9 MB, free: 236 kB / 298.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2582, allocations: 0 / 350.9 MB, free: 236 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.001319/0.2595, allocations: 488.6 kB / 351.4 MB, free: 15.75 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.0003395/0.2599, allocations: 202.7 kB / 351.6 MB, free: 15.57 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001663/0.2615, allocations: 1.342 MB / 352.9 MB, free: 14.25 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.2615, allocations: 0.9375 kB / 352.9 MB, free: 14.25 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008294/0.2624, allocations: 0.8501 MB / 353.8 MB, free: 13.37 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001211/0.2636, allocations: 472.6 kB / 354.3 MB, free: 12.93 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005266/0.2688, allocations: 4.206 MB / 358.5 MB, free: 8.637 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004866/0.2693, allocations: 0.6496 MB / 359.1 MB, free: 7.957 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0006999/0.27, allocations: 382.8 kB / 359.5 MB, free: 7.578 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002944/0.2703, allocations: 132.5 kB / 359.6 MB, free: 7.449 MB / 314.7 MB Notification: Performance of SimCode: time 9.01e-07/0.2703, allocations: 0 / 359.6 MB, free: 7.449 MB / 314.7 MB Notification: Performance of Templates: time 0.03187/0.3022, allocations: 24.96 MB / 384.6 MB, free: 14.91 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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","",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.6920136329717934]