Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.001005/0.001005, allocations: 84.3 kB / 22.21 MB, free: 2.293 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.001132/0.001132, allocations: 163.8 kB / 25.6 MB, free: 8.922 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.9238/0.9238, allocations: 158.6 MB / 187.5 MB, free: 2.824 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.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.944e-06/1.944e-06, allocations: 3.938 kB / 251.5 MB, free: 7.254 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.756e-05/1.951e-05, allocations: 6.25 kB / 251.5 MB, free: 7.246 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01003/0.01005, allocations: 7.948 MB / 259.4 MB, free: 15.25 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00409/0.01414, allocations: 2.666 MB / 262.1 MB, free: 12.57 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000423/0.01457, allocations: 27.88 kB / 262.1 MB, free: 12.55 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001156/0.01572, allocations: 0.5285 MB / 262.7 MB, free: 12.02 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006018/0.01632, allocations: 0.5232 MB / 263.2 MB, free: 11.49 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002913/0.01662, allocations: 267.6 kB / 263.4 MB, free: 11.23 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001071/0.01769, allocations: 1.563 MB / 265 MB, free: 9.652 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004243/0.01811, allocations: 375.3 kB / 265.4 MB, free: 9.262 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007221/0.01883, allocations: 0.8768 MB / 266.2 MB, free: 8.383 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003941/0.01923, allocations: 490.5 kB / 266.7 MB, free: 7.902 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000107/0.01933, allocations: 136 kB / 266.9 MB, free: 7.77 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002061/0.01954, allocations: 175.9 kB / 267 MB, free: 7.598 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001445/0.01968, allocations: 294.8 kB / 267.3 MB, free: 7.309 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002808/0.01997, allocations: 470.9 kB / 267.8 MB, free: 6.848 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007259/0.02069, allocations: 0.9457 MB / 268.7 MB, free: 5.898 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.02069, allocations: 0 / 268.7 MB, free: 5.898 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.41e-07/0.0207, allocations: 4 kB / 268.7 MB, free: 5.895 MB / 250.7 MB Notification: Performance of Transformations before backend: time 7.875e-06/0.0207, allocations: 0 / 268.7 MB, free: 5.895 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.001593/0.0223, allocations: 1.554 MB / 270.3 MB, free: 4.301 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.512e-05/0.02233, allocations: 11.98 kB / 270.3 MB, free: 4.289 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003938/0.02273, allocations: 276 kB / 270.6 MB, free: 4.02 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006201/0.02335, allocations: 0.6731 MB / 271.2 MB, free: 3.312 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.094e-05/0.02339, allocations: 74 kB / 271.3 MB, free: 3.238 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.437e-05/0.02347, allocations: 96 kB / 271.4 MB, free: 3.145 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006772/0.02415, allocations: 0.773 MB / 272.2 MB, free: 2.312 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.471e-05/0.02417, allocations: 11.95 kB / 272.2 MB, free: 2.301 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.622e-05/0.02422, allocations: 43.98 kB / 272.2 MB, free: 2.258 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.662e-05/0.02424, allocations: 24 kB / 272.2 MB, free: 2.234 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005722/0.02481, allocations: 273.7 kB / 272.5 MB, free: 1.965 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002749/0.02756, allocations: 3.682 MB / 276.2 MB, free: 14.07 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002832/0.02784, allocations: 255.2 kB / 276.4 MB, free: 13.81 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004727/0.02831, allocations: 179.5 kB / 276.6 MB, free: 13.63 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.394e-05/0.02834, allocations: 8 kB / 276.6 MB, free: 13.62 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.199e-05/0.02836, allocations: 41.39 kB / 276.7 MB, free: 13.57 MB / 266.7 MB Notification: Performance of pre-optimization done (n=41): time 1.694e-06/0.02836, allocations: 0 / 276.7 MB, free: 13.57 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.001075/0.02944, allocations: 0.856 MB / 277.5 MB, free: 12.68 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.024e-05/0.02947, allocations: 81.11 kB / 277.6 MB, free: 12.58 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005098/0.02998, allocations: 0.7486 MB / 278.4 MB, free: 11.82 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.02e-05/0.03, allocations: 37.7 kB / 278.4 MB, free: 11.77 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002838/0.03028, allocations: 0.6542 MB / 279 MB, free: 11.11 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.924e-05/0.03036, allocations: 170.5 kB / 279.2 MB, free: 10.94 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001152/0.03047, allocations: 136.2 kB / 279.3 MB, free: 10.8 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001684/0.03064, allocations: 0.578 MB / 279.9 MB, free: 10.21 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.091e-05/0.03072, allocations: 69.94 kB / 280 MB, free: 10.14 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002458/0.03097, allocations: 0.5056 MB / 280.5 MB, free: 9.449 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000385/0.03135, allocations: 0.6108 MB / 281.1 MB, free: 8.656 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.03136, allocations: 8 kB / 281.1 MB, free: 8.648 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.000562/0.03192, allocations: 0.6012 MB / 281.7 MB, free: 8.031 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/0.03193, allocations: 12 kB / 281.7 MB, free: 8.02 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.03194, allocations: 8 kB / 281.7 MB, free: 8.012 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001494/0.03209, allocations: 75.47 kB / 281.8 MB, free: 7.93 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002603/0.03235, allocations: 159.8 kB / 282 MB, free: 7.773 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001805/0.03416, allocations: 3.804 MB / 285.8 MB, free: 3.742 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002306/0.03439, allocations: 31.95 kB / 285.8 MB, free: 3.711 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.586e-05/0.03441, allocations: 31.94 kB / 285.8 MB, free: 3.68 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001716/0.03458, allocations: 208.2 kB / 286 MB, free: 3.465 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.42e-05/0.03467, allocations: 99.48 kB / 286.1 MB, free: 3.367 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003557/0.03502, allocations: 356.5 kB / 286.5 MB, free: 2.996 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.03503, allocations: 4 kB / 286.5 MB, free: 2.992 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.884e-06/0.03503, allocations: 0 / 286.5 MB, free: 2.992 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.117e-06/0.03503, allocations: 3.984 kB / 286.5 MB, free: 2.988 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009663/0.036, allocations: 1.025 MB / 287.5 MB, free: 1.891 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.036, allocations: 0 / 287.5 MB, free: 1.891 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001576/0.03616, allocations: 71.91 kB / 287.6 MB, free: 1.82 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001186/0.03628, allocations: 71.48 kB / 287.7 MB, free: 1.742 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.587e-05/0.03629, allocations: 8 kB / 287.7 MB, free: 1.734 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001777/0.03807, allocations: 3.8 MB / 291.5 MB, free: 13.71 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.03807, allocations: 4 kB / 291.5 MB, free: 13.71 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005482/0.03862, allocations: 0.6327 MB / 292.1 MB, free: 13.02 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001442/0.03877, allocations: 119.4 kB / 292.2 MB, free: 12.9 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.86e-05/0.03881, allocations: 16 kB / 292.2 MB, free: 12.88 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001775/0.03899, allocations: 19.98 kB / 292.3 MB, free: 12.86 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.653e-05/0.03905, allocations: 39.88 kB / 292.3 MB, free: 12.82 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.404e-05/0.03906, allocations: 11.94 kB / 292.3 MB, free: 12.81 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002726/0.03934, allocations: 450.8 kB / 292.7 MB, free: 12.38 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.03934, allocations: 4 kB / 292.7 MB, free: 12.38 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004729/0.03981, allocations: 211.9 kB / 293 MB, free: 12.17 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,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.000148/0.03996, allocations: 115.2 kB / 293.1 MB, free: 12.04 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005057/0.04046, allocations: 0.6609 MB / 293.7 MB, free: 11.35 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.04046, allocations: 0.875 kB / 293.7 MB, free: 11.35 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002755/0.04074, allocations: 488 kB / 294.2 MB, free: 10.83 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005417/0.04128, allocations: 215.4 kB / 294.4 MB, free: 10.63 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002002/0.04328, allocations: 1.639 MB / 296.1 MB, free: 8.918 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001399/0.04342, allocations: 183.4 kB / 296.2 MB, free: 8.715 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002212/0.04364, allocations: 94.69 kB / 296.3 MB, free: 8.617 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000311/0.04396, allocations: 274 kB / 296.6 MB, free: 8.348 MB / 282.7 MB Notification: Performance of SimCode: time 1.042e-06/0.04396, allocations: 0 / 296.6 MB, free: 8.348 MB / 282.7 MB Notification: Performance of Templates: time 0.0145/0.05845, allocations: 11.13 MB / 307.7 MB, free: 13.26 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.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.0332933967001736]