Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.001157/0.001157, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001779/0.002935, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 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.001023/0.001023, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001107/0.00213, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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 0.9864/0.9864, allocations: 173.4 MB / 185.8 MB, free: 8.98 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09068/1.077, allocations: 52.49 MB / 238.3 MB, free: 4.426 MB / 234.7 MB " [Timeout remaining time 179] 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.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.462e-06/1.462e-06, allocations: 0 / 239.6 MB, free: 3.16 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.855e-05/2.002e-05, allocations: 2.312 kB / 239.6 MB, free: 3.156 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.007263/0.007283, allocations: 8.069 MB / 247.6 MB, free: 11.05 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004264/0.01155, allocations: 2.738 MB / 250.4 MB, free: 8.305 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006915/0.01224, allocations: 27.88 kB / 250.4 MB, free: 8.277 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001183/0.01342, allocations: 0.5401 MB / 250.9 MB, free: 7.734 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001031/0.01445, allocations: 0.531 MB / 251.5 MB, free: 7.199 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004462/0.0149, allocations: 263.6 kB / 251.7 MB, free: 6.941 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001801/0.0167, allocations: 1.568 MB / 253.3 MB, free: 5.367 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005317/0.01723, allocations: 395.2 kB / 253.7 MB, free: 4.949 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001368/0.0186, allocations: 1.022 MB / 254.7 MB, free: 3.914 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006228/0.01922, allocations: 486.6 kB / 255.2 MB, free: 3.438 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001638/0.01939, allocations: 140 kB / 255.3 MB, free: 3.301 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003404/0.01973, allocations: 175.9 kB / 255.5 MB, free: 3.129 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001247/0.01985, allocations: 219.2 kB / 255.7 MB, free: 2.914 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003305/0.02018, allocations: 395.2 kB / 256.1 MB, free: 2.527 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009158/0.0211, allocations: 0.8989 MB / 257 MB, free: 1.625 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.658e-05/0.02111, allocations: 0 / 257 MB, free: 1.625 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.02112, allocations: 0 / 257 MB, free: 1.625 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.426e-05/0.02114, allocations: 0 / 257 MB, free: 1.625 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.001541/0.02268, allocations: 1.651 MB / 258.6 MB, free: 15.94 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.463e-05/0.02274, allocations: 8.031 kB / 258.6 MB, free: 15.93 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004861/0.02322, allocations: 309.8 kB / 258.9 MB, free: 15.61 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000944/0.02417, allocations: 0.5417 MB / 259.5 MB, free: 15.04 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.279e-05/0.02421, allocations: 77.92 kB / 259.6 MB, free: 14.96 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.949e-05/0.0243, allocations: 107.9 kB / 259.7 MB, free: 14.86 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006415/0.02494, allocations: 0.7692 MB / 260.4 MB, free: 14.04 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.316e-05/0.02496, allocations: 3.938 kB / 260.4 MB, free: 14.03 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.5e-05/0.02501, allocations: 44 kB / 260.5 MB, free: 13.99 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.434e-05/0.02502, allocations: 24 kB / 260.5 MB, free: 13.96 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002812/0.0253, allocations: 237.8 kB / 260.7 MB, free: 13.73 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002513/0.02782, allocations: 2.977 MB / 263.7 MB, free: 10.56 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003129/0.02813, allocations: 241.5 kB / 264 MB, free: 10.31 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002425/0.02837, allocations: 173.4 kB / 264.1 MB, free: 10.14 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.733e-05/0.02841, allocations: 11.78 kB / 264.1 MB, free: 10.13 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.131e-05/0.02844, allocations: 34.56 kB / 264.2 MB, free: 10.09 MB / 266.7 MB Notification: Performance of pre-optimization done (n=41): time 2.073e-06/0.02844, allocations: 0 / 264.2 MB, free: 10.09 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.001219/0.02966, allocations: 0.7813 MB / 265 MB, free: 9.27 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.434e-05/0.0297, allocations: 55.41 kB / 265 MB, free: 9.203 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004928/0.03019, allocations: 0.6847 MB / 265.7 MB, free: 8.508 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.475e-05/0.03021, allocations: 33.7 kB / 265.7 MB, free: 8.469 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005113/0.03072, allocations: 0.4972 MB / 266.2 MB, free: 7.965 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.686e-05/0.0308, allocations: 170.6 kB / 266.4 MB, free: 7.797 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001059/0.03091, allocations: 130.5 kB / 266.5 MB, free: 7.66 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001166/0.03102, allocations: 406.5 kB / 266.9 MB, free: 7.254 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.054e-05/0.03109, allocations: 57.97 kB / 267 MB, free: 7.199 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002309/0.03133, allocations: 385.3 kB / 267.3 MB, free: 6.684 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003855/0.03171, allocations: 0.5001 MB / 267.8 MB, free: 6.051 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.03171, allocations: 0 / 267.8 MB, free: 6.051 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0004964/0.03221, allocations: 494.3 kB / 268.3 MB, free: 5.555 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.976e-05/0.03223, allocations: 12 kB / 268.3 MB, free: 5.543 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/0.03224, allocations: 8 kB / 268.3 MB, free: 5.535 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001766/0.03242, allocations: 73.81 kB / 268.4 MB, free: 5.457 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002927/0.03271, allocations: 175.7 kB / 268.6 MB, free: 5.285 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001345/0.03406, allocations: 2.611 MB / 271.2 MB, free: 2.5 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002392/0.03429, allocations: 35.94 kB / 271.2 MB, free: 2.465 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.128e-05/0.03433, allocations: 32 kB / 271.3 MB, free: 2.434 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.0001637/0.03449, allocations: 161.5 kB / 271.4 MB, free: 2.266 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.653e-05/0.03456, allocations: 67.95 kB / 271.5 MB, free: 2.199 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003338/0.03489, allocations: 286.8 kB / 271.8 MB, free: 1.902 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.985e-06/0.03489, allocations: 4 kB / 271.8 MB, free: 1.898 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.0349, allocations: 4 kB / 271.8 MB, free: 1.895 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.0349, allocations: 3.984 kB / 271.8 MB, free: 1.891 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000829/0.03573, allocations: 0.7826 MB / 272.6 MB, free: 1.055 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.03574, allocations: 7.984 kB / 272.6 MB, free: 1.047 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001736/0.03591, allocations: 79.91 kB / 272.7 MB, free: 0.9688 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000119/0.03603, allocations: 71.69 kB / 272.7 MB, free: 0.8984 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001217/0.03615, allocations: 65.8 kB / 272.8 MB, free: 0.8281 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.594e-05/0.03617, allocations: 11.98 kB / 272.8 MB, free: 0.8164 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001395/0.03756, allocations: 2.58 MB / 275.4 MB, free: 14.06 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.03757, allocations: 7.938 kB / 275.4 MB, free: 14.05 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003933/0.03796, allocations: 487.1 kB / 275.9 MB, free: 13.53 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.364e-05/0.03801, allocations: 16 kB / 275.9 MB, free: 13.51 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001757/0.03819, allocations: 27.92 kB / 275.9 MB, free: 13.48 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.848e-05/0.03825, allocations: 43.62 kB / 275.9 MB, free: 13.44 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.349e-05/0.03826, allocations: 16 kB / 276 MB, free: 13.43 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000255/0.03851, allocations: 323.3 kB / 276.3 MB, free: 13.11 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.03851, allocations: 0 / 276.3 MB, free: 13.11 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005095/0.03902, allocations: 204 kB / 276.5 MB, free: 12.91 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.0001724/0.0392, allocations: 104.3 kB / 276.6 MB, free: 12.8 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005091/0.03971, allocations: 0.5172 MB / 277.1 MB, free: 12.26 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.168e-05/0.03973, allocations: 20.5 kB / 277.1 MB, free: 12.24 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002616/0.03999, allocations: 373.7 kB / 277.5 MB, free: 11.85 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005475/0.04054, allocations: 278.3 kB / 277.8 MB, free: 11.58 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009409/0.04995, allocations: 1.766 MB / 279.5 MB, free: 9.746 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001414/0.05009, allocations: 187.3 kB / 279.7 MB, free: 9.543 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003259/0.05041, allocations: 98.69 kB / 279.8 MB, free: 9.441 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003046/0.05072, allocations: 241.2 kB / 280 MB, free: 9.207 MB / 282.7 MB Notification: Performance of SimCode: time 1.903e-06/0.05072, allocations: 0 / 280 MB, free: 9.207 MB / 282.7 MB Notification: Performance of Templates: time 0.1168/0.1675, allocations: 11.58 MB / 291.6 MB, free: 29.62 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/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: 2.98551220074296]