Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001278/0.001278, allocations: 79.69 kB / 21.7 MB, free: 2.852 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001464/0.001464, allocations: 162.2 kB / 24.99 MB, free: 8.801 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.006/1.006, allocations: 177 MB / 205.2 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.854e-06/1.854e-06, allocations: 0 / 273 MB, free: 1.75 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.945e-05/2.13e-05, allocations: 2.312 kB / 273 MB, free: 1.746 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.008085/0.008106, allocations: 8.183 MB / 281.2 MB, free: 9.516 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003221/0.01133, allocations: 2.684 MB / 283.9 MB, free: 6.82 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000444/0.01177, allocations: 35.81 kB / 283.9 MB, free: 6.785 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009964/0.01277, allocations: 0.5323 MB / 284.4 MB, free: 6.25 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006589/0.01343, allocations: 0.5311 MB / 285 MB, free: 5.715 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003408/0.01377, allocations: 267.6 kB / 285.2 MB, free: 5.453 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001161/0.01493, allocations: 1.57 MB / 286.8 MB, free: 3.879 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004097/0.01534, allocations: 375.3 kB / 287.2 MB, free: 3.488 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006627/0.016, allocations: 0.8846 MB / 288.1 MB, free: 2.602 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004082/0.01641, allocations: 486.5 kB / 288.5 MB, free: 2.125 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001101/0.01652, allocations: 140 kB / 288.7 MB, free: 1.988 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000198/0.01672, allocations: 184 kB / 288.8 MB, free: 1.809 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001353/0.01685, allocations: 290.9 kB / 289.1 MB, free: 1.523 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000304/0.01716, allocations: 478.8 kB / 289.6 MB, free: 1.055 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007697/0.01793, allocations: 0.9612 MB / 290.6 MB, free: 92 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.01793, allocations: 4 kB / 290.6 MB, free: 88 kB / 266.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.01793, allocations: 4 kB / 290.6 MB, free: 84 kB / 266.7 MB Notification: Performance of Transformations before backend: time 9.117e-06/0.01794, allocations: 0 / 290.6 MB, free: 84 kB / 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.09568/0.1136, allocations: 1.528 MB / 292.1 MB, free: 29.63 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.1137, allocations: 15.73 kB / 292.1 MB, free: 29.63 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005172/0.1142, allocations: 281.7 kB / 292.4 MB, free: 29.53 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007991/0.115, allocations: 0.7013 MB / 293.1 MB, free: 29.11 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.861e-05/0.115, allocations: 75.19 kB / 293.2 MB, free: 29.07 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.179e-05/0.1151, allocations: 106.5 kB / 293.3 MB, free: 29.04 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009147/0.116, allocations: 0.8233 MB / 294.1 MB, free: 28.61 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.679e-05/0.116, allocations: 6.719 kB / 294.1 MB, free: 28.61 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.73e-05/0.1161, allocations: 41.61 kB / 294.1 MB, free: 28.57 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.937e-05/0.1161, allocations: 24.41 kB / 294.2 MB, free: 28.57 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005757/0.1167, allocations: 358.2 kB / 294.5 MB, free: 28.52 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0028/0.1195, allocations: 3.642 MB / 298.1 MB, free: 25.91 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003696/0.1199, allocations: 278.7 kB / 298.4 MB, free: 25.8 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002996/0.1202, allocations: 202.5 kB / 298.6 MB, free: 25.75 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.509e-05/0.1202, allocations: 15.31 kB / 298.6 MB, free: 25.75 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.871e-05/0.1202, allocations: 37.67 kB / 298.7 MB, free: 25.71 MB / 266.7 MB Notification: Performance of pre-optimization done (n=41): time 2.345e-06/0.1202, allocations: 0.6094 kB / 298.7 MB, free: 25.71 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.001417/0.1216, allocations: 1.056 MB / 299.7 MB, free: 25.12 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.5e-05/0.1216, allocations: 82.7 kB / 299.8 MB, free: 25.02 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006646/0.1223, allocations: 0.7717 MB / 300.6 MB, free: 24.66 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.952e-05/0.1223, allocations: 31.8 kB / 300.6 MB, free: 24.63 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002337/0.1226, allocations: 0.6542 MB / 301.3 MB, free: 24.1 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.734e-05/0.1226, allocations: 173.7 kB / 301.4 MB, free: 23.97 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001154/0.1227, allocations: 139.6 kB / 301.6 MB, free: 23.89 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001044/0.1229, allocations: 0.5688 MB / 302.1 MB, free: 23.36 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001362/0.123, allocations: 87.67 kB / 302.2 MB, free: 23.34 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002479/0.1232, allocations: 0.5183 MB / 302.7 MB, free: 22.75 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004631/0.1237, allocations: 0.6361 MB / 303.4 MB, free: 22.13 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.801e-06/0.1237, allocations: 5.766 kB / 303.4 MB, free: 22.13 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0007125/0.1244, allocations: 0.6458 MB / 304 MB, free: 21.86 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/0.1244, allocations: 10.66 kB / 304 MB, free: 21.86 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.095e-05/0.1244, allocations: 13.62 kB / 304.1 MB, free: 21.86 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001843/0.1246, allocations: 83.95 kB / 304.1 MB, free: 21.82 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002777/0.1249, allocations: 150.7 kB / 304.3 MB, free: 21.8 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001085/0.126, allocations: 3.863 MB / 308.1 MB, free: 17.98 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002691/0.1263, allocations: 30.58 kB / 308.2 MB, free: 17.97 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.236e-05/0.1263, allocations: 35.38 kB / 308.2 MB, free: 17.96 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.0001514/0.1264, allocations: 203.9 kB / 308.4 MB, free: 17.77 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.874e-05/0.1265, allocations: 103.3 kB / 308.5 MB, free: 17.71 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004432/0.127, allocations: 386.1 kB / 308.9 MB, free: 17.54 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.928e-06/0.127, allocations: 4.062 kB / 308.9 MB, free: 17.54 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-06/0.127, allocations: 1.438 kB / 308.9 MB, free: 17.54 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-06/0.127, allocations: 5.141 kB / 308.9 MB, free: 17.54 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00119/0.1282, allocations: 1.186 MB / 310.1 MB, free: 16.72 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.1282, allocations: 2.656 kB / 310.1 MB, free: 16.72 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001732/0.1284, allocations: 66.88 kB / 310.2 MB, free: 16.71 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001367/0.1285, allocations: 74.45 kB / 310.2 MB, free: 16.66 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.073e-05/0.1285, allocations: 13.62 kB / 310.2 MB, free: 16.66 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000959/0.1295, allocations: 3.846 MB / 314.1 MB, free: 12.78 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.1295, allocations: 3.688 kB / 314.1 MB, free: 12.78 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005617/0.13, allocations: 0.6662 MB / 314.8 MB, free: 12.27 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001416/0.1302, allocations: 119.5 kB / 314.9 MB, free: 12.15 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.31e-05/0.1302, allocations: 8 kB / 314.9 MB, free: 12.14 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001886/0.1304, allocations: 27.98 kB / 314.9 MB, free: 12.12 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.245e-05/0.1305, allocations: 35.88 kB / 314.9 MB, free: 12.08 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.499e-05/0.1305, allocations: 23.7 kB / 315 MB, free: 12.06 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000341/0.1308, allocations: 490.9 kB / 315.4 MB, free: 11.59 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1308, allocations: 0 / 315.4 MB, free: 11.59 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005014/0.1313, allocations: 200 kB / 315.6 MB, free: 11.39 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.0001559/0.1315, allocations: 127.1 kB / 315.8 MB, free: 11.26 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005593/0.1321, allocations: 0.6898 MB / 316.5 MB, free: 10.54 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.1321, allocations: 0 / 316.5 MB, free: 10.54 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002758/0.1323, allocations: 0.4978 MB / 317 MB, free: 10 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000609/0.1329, allocations: 210.2 kB / 317.2 MB, free: 9.82 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001884/0.1348, allocations: 1.642 MB / 318.8 MB, free: 8.125 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.768e-05/0.1349, allocations: 171.5 kB / 319 MB, free: 7.938 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002172/0.1351, allocations: 94.77 kB / 319.1 MB, free: 7.84 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.967e-05/0.1352, allocations: 56.5 kB / 319.1 MB, free: 7.785 MB / 266.7 MB Notification: Performance of SimCode: time 8.01e-07/0.1352, allocations: 0 / 319.1 MB, free: 7.785 MB / 266.7 MB Notification: Performance of Templates: time 0.01304/0.1483, allocations: 10.34 MB / 329.5 MB, free: 13.69 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.180910921888426]