Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0009174/0.0009174, allocations: 80.8 kB / 21.49 MB, free: 2.992 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.0009548/0.0009548, allocations: 168.8 kB / 24.91 MB, free: 9.191 MB / 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.9253/0.9253, allocations: 177.1 MB / 205.3 MB, free: 5.508 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.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.213e-06/1.213e-06, allocations: 0 / 273.5 MB, free: 1.273 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.178e-05/1.3e-05, allocations: 2.312 kB / 273.5 MB, free: 1.27 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.006088/0.006101, allocations: 8.063 MB / 281.6 MB, free: 9.168 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003747/0.009848, allocations: 2.769 MB / 284.3 MB, free: 6.387 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004357/0.01028, allocations: 31.88 kB / 284.4 MB, free: 6.355 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001012/0.0113, allocations: 0.544 MB / 284.9 MB, free: 5.809 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000701/0.012, allocations: 0.531 MB / 285.4 MB, free: 5.273 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003453/0.01234, allocations: 263.6 kB / 285.7 MB, free: 5.016 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001056/0.0134, allocations: 1.579 MB / 287.3 MB, free: 3.43 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004166/0.01381, allocations: 391.2 kB / 287.7 MB, free: 3.016 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001059/0.01487, allocations: 0.8808 MB / 288.5 MB, free: 2.133 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004897/0.01536, allocations: 486.5 kB / 289 MB, free: 1.656 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001302/0.01549, allocations: 136 kB / 289.1 MB, free: 1.523 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002333/0.01573, allocations: 188 kB / 289.3 MB, free: 1.34 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001309/0.01586, allocations: 290.8 kB / 289.6 MB, free: 1.055 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002971/0.01615, allocations: 470.9 kB / 290.1 MB, free: 0.5938 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1088/0.1249, allocations: 0.9469 MB / 291 MB, free: 19.07 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.1249, allocations: 0 / 291 MB, free: 19.07 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1249, allocations: 0 / 291 MB, free: 19.07 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.61e-05/0.125, allocations: 3.094 kB / 291 MB, free: 19.07 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.001635/0.1266, allocations: 1.395 MB / 292.4 MB, free: 18.36 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.422e-05/0.1267, allocations: 11.2 kB / 292.4 MB, free: 18.36 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005361/0.1272, allocations: 241 kB / 292.7 MB, free: 18.36 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007076/0.1279, allocations: 0.5343 MB / 293.2 MB, free: 18.08 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.08e-05/0.1279, allocations: 74.12 kB / 293.3 MB, free: 18.08 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.666e-05/0.128, allocations: 110.5 kB / 293.4 MB, free: 18.07 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008152/0.1289, allocations: 0.7729 MB / 294.1 MB, free: 17.83 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.978e-05/0.1289, allocations: 9.219 kB / 294.2 MB, free: 17.83 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.447e-05/0.1289, allocations: 40.09 kB / 294.2 MB, free: 17.83 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.012e-05/0.1289, allocations: 27.3 kB / 294.2 MB, free: 17.83 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003647/0.1293, allocations: 238.5 kB / 294.5 MB, free: 17.82 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002699/0.132, allocations: 2.967 MB / 297.4 MB, free: 16.26 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003036/0.1323, allocations: 236.9 kB / 297.7 MB, free: 16.23 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002474/0.1326, allocations: 167.5 kB / 297.8 MB, free: 16.22 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.594e-05/0.1326, allocations: 7.25 kB / 297.8 MB, free: 16.22 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.118e-05/0.1326, allocations: 37.5 kB / 297.9 MB, free: 16.18 MB / 266.7 MB Notification: Performance of pre-optimization done (n=41): time 1.654e-06/0.1326, allocations: 2.219 kB / 297.9 MB, free: 16.18 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.001235/0.1338, allocations: 0.7892 MB / 298.7 MB, free: 15.91 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.571e-05/0.1339, allocations: 82.77 kB / 298.7 MB, free: 15.81 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005679/0.1344, allocations: 0.6718 MB / 299.4 MB, free: 15.65 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.835e-05/0.1345, allocations: 35.02 kB / 299.4 MB, free: 15.62 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001861/0.1346, allocations: 0.5045 MB / 299.9 MB, free: 15.3 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.291e-05/0.1347, allocations: 170.6 kB / 300.1 MB, free: 15.19 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001134/0.1348, allocations: 139.1 kB / 300.2 MB, free: 15.17 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.965e-05/0.1349, allocations: 400.6 kB / 300.6 MB, free: 14.85 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.008e-05/0.135, allocations: 63.95 kB / 300.7 MB, free: 14.85 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000177/0.1352, allocations: 390 kB / 301.1 MB, free: 14.46 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00034/0.1355, allocations: 496.7 kB / 301.6 MB, free: 14.11 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.1355, allocations: 2.906 kB / 301.6 MB, free: 14.11 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0005432/0.1361, allocations: 493.2 kB / 302 MB, free: 14.05 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.842e-05/0.1361, allocations: 14.41 kB / 302.1 MB, free: 14.04 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.208e-05/0.1361, allocations: 8.656 kB / 302.1 MB, free: 14.04 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000175/0.1363, allocations: 67.31 kB / 302.1 MB, free: 14.03 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003055/0.1366, allocations: 172.1 kB / 302.3 MB, free: 14.02 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009558/0.1375, allocations: 2.6 MB / 304.9 MB, free: 11.62 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002575/0.1378, allocations: 33.17 kB / 304.9 MB, free: 11.62 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.241e-05/0.1378, allocations: 30.36 kB / 305 MB, free: 11.62 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.0001409/0.138, allocations: 161.4 kB / 305.1 MB, free: 11.5 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.724e-05/0.138, allocations: 66.19 kB / 305.2 MB, free: 11.5 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003398/0.1384, allocations: 305.6 kB / 305.5 MB, free: 11.41 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.1384, allocations: 4.125 kB / 305.5 MB, free: 11.41 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.975e-06/0.1384, allocations: 1.375 kB / 305.5 MB, free: 11.41 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.1384, allocations: 2.812 kB / 305.5 MB, free: 11.41 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008089/0.1392, allocations: 0.7758 MB / 306.3 MB, free: 11.13 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.1392, allocations: 1.156 kB / 306.3 MB, free: 11.13 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001725/0.1394, allocations: 76.41 kB / 306.3 MB, free: 11.13 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001182/0.1395, allocations: 66.88 kB / 306.4 MB, free: 11.11 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.606e-05/0.1395, allocations: 7.656 kB / 306.4 MB, free: 11.11 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008224/0.1403, allocations: 2.584 MB / 309 MB, free: 8.707 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.307e-06/0.1403, allocations: 5.188 kB / 309 MB, free: 8.707 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004013/0.1407, allocations: 484.7 kB / 309.5 MB, free: 8.488 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001205/0.1409, allocations: 72.84 kB / 309.6 MB, free: 8.445 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.146e-05/0.1409, allocations: 11.44 kB / 309.6 MB, free: 8.445 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001812/0.1411, allocations: 24.36 kB / 309.6 MB, free: 8.445 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.682e-05/0.1412, allocations: 32.95 kB / 309.6 MB, free: 8.445 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.6e-05/0.1412, allocations: 17.17 kB / 309.6 MB, free: 8.445 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002581/0.1414, allocations: 326.8 kB / 310 MB, free: 8.414 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1414, allocations: 4 kB / 310 MB, free: 8.41 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004576/0.1419, allocations: 207.1 kB / 310.2 MB, free: 8.41 MB / 266.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.0001503/0.142, allocations: 106.9 kB / 310.3 MB, free: 8.344 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004249/0.1425, allocations: 0.539 MB / 310.8 MB, free: 8.09 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.675e-05/0.1425, allocations: 14.19 kB / 310.8 MB, free: 8.09 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002077/0.1427, allocations: 368.9 kB / 311.2 MB, free: 7.855 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005185/0.1432, allocations: 200.3 kB / 311.4 MB, free: 7.836 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001764/0.145, allocations: 1.599 MB / 313 MB, free: 6.961 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001005/0.1451, allocations: 173.9 kB / 313.1 MB, free: 6.879 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002239/0.1453, allocations: 102.1 kB / 313.2 MB, free: 6.848 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002781/0.1456, allocations: 231.7 kB / 313.5 MB, free: 6.797 MB / 266.7 MB Notification: Performance of SimCode: time 6.61e-07/0.1456, allocations: 3.469 kB / 313.5 MB, free: 6.797 MB / 266.7 MB Notification: Performance of Templates: time 0.0136/0.1592, allocations: 11.07 MB / 324.5 MB, free: 13.02 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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: 3.027515874709934]