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.0008478/0.0008478, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001214/0.002062, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0007209/0.0007209, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009452/0.001666, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.9179/0.9179, allocations: 177.2 MB / 189.8 MB, free: 5.25 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08531/1.003, allocations: 53.66 MB / 243.4 MB, free: 15.5 MB / 250.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.392e-06/1.392e-06, allocations: 0 / 244.7 MB, free: 14.22 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.117e-05/2.256e-05, allocations: 9.828 kB / 244.7 MB, free: 14.21 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.006702/0.006724, allocations: 8.102 MB / 252.8 MB, free: 6.059 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003753/0.01048, allocations: 2.789 MB / 255.6 MB, free: 3.262 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004691/0.01095, allocations: 27.88 kB / 255.6 MB, free: 3.234 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001012/0.01196, allocations: 0.5556 MB / 256.2 MB, free: 2.676 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007933/0.01275, allocations: 0.5193 MB / 256.7 MB, free: 2.152 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003757/0.01313, allocations: 279.5 kB / 257 MB, free: 1.879 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001172/0.0143, allocations: 1.569 MB / 258.6 MB, free: 312 kB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000446/0.01475, allocations: 391.3 kB / 258.9 MB, free: 15.9 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001044/0.01579, allocations: 1.029 MB / 260 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005043/0.01629, allocations: 486.5 kB / 260.4 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001248/0.01642, allocations: 136 kB / 260.6 MB, free: 14.24 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002446/0.01666, allocations: 180 kB / 260.7 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001183/0.01678, allocations: 219.2 kB / 261 MB, free: 13.85 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002892/0.01707, allocations: 395.3 kB / 261.3 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000816/0.01789, allocations: 0.9067 MB / 262.3 MB, free: 12.55 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.347e-05/0.0179, allocations: 0 / 262.3 MB, free: 12.55 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.0179, allocations: 4 kB / 262.3 MB, free: 12.55 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.602e-05/0.01793, allocations: 0 / 262.3 MB, free: 12.55 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.001504/0.01943, allocations: 1.647 MB / 263.9 MB, free: 10.87 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.879e-05/0.01946, allocations: 8.031 kB / 263.9 MB, free: 10.86 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000503/0.01996, allocations: 321.8 kB / 264.2 MB, free: 10.53 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006999/0.02066, allocations: 0.5456 MB / 264.8 MB, free: 9.953 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.905e-05/0.0207, allocations: 74 kB / 264.8 MB, free: 9.883 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.11e-05/0.02079, allocations: 108 kB / 265 MB, free: 9.777 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006617/0.02145, allocations: 0.777 MB / 265.7 MB, free: 8.945 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.568e-05/0.02148, allocations: 11.94 kB / 265.7 MB, free: 8.934 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.322e-05/0.02152, allocations: 39.98 kB / 265.8 MB, free: 8.895 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.526e-05/0.02154, allocations: 24 kB / 265.8 MB, free: 8.871 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002827/0.02182, allocations: 245.8 kB / 266 MB, free: 8.633 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002575/0.0244, allocations: 2.961 MB / 269 MB, free: 5.477 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003019/0.0247, allocations: 233.3 kB / 269.2 MB, free: 5.242 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002169/0.02492, allocations: 168.7 kB / 269.4 MB, free: 5.074 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.567e-05/0.02494, allocations: 8 kB / 269.4 MB, free: 5.066 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.617e-05/0.02497, allocations: 46.55 kB / 269.4 MB, free: 5.012 MB / 266.7 MB Notification: Performance of pre-optimization done (n=41): time 1.473e-06/0.02497, allocations: 0 / 269.4 MB, free: 5.012 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.001106/0.02607, allocations: 0.815 MB / 270.3 MB, free: 4.164 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.671e-05/0.0261, allocations: 55.41 kB / 270.3 MB, free: 4.098 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004799/0.02658, allocations: 0.6691 MB / 271 MB, free: 3.414 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.191e-05/0.0266, allocations: 37.7 kB / 271 MB, free: 3.371 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001998/0.0268, allocations: 0.4972 MB / 271.5 MB, free: 2.867 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.339e-05/0.02689, allocations: 170.6 kB / 271.7 MB, free: 2.699 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001096/0.027, allocations: 134.5 kB / 271.8 MB, free: 2.559 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.02714, allocations: 402.5 kB / 272.2 MB, free: 2.156 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.214e-05/0.02721, allocations: 57.97 kB / 272.3 MB, free: 2.102 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002469/0.02746, allocations: 393.2 kB / 272.7 MB, free: 1.574 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004275/0.02788, allocations: 0.5195 MB / 273.2 MB, free: 0.9219 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.65e-06/0.02789, allocations: 4 kB / 273.2 MB, free: 0.918 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0005102/0.0284, allocations: 486.6 kB / 273.7 MB, free: 440 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/0.02842, allocations: 8 kB / 273.7 MB, free: 432 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.26e-05/0.02843, allocations: 12.5 kB / 273.7 MB, free: 420 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001694/0.0286, allocations: 77.67 kB / 273.7 MB, free: 336 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002994/0.0289, allocations: 175.7 kB / 273.9 MB, free: 160 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001274/0.03017, allocations: 2.6 MB / 276.5 MB, free: 13.38 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002391/0.03041, allocations: 36.14 kB / 276.6 MB, free: 13.34 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.524e-05/0.03044, allocations: 24 kB / 276.6 MB, free: 13.32 MB / 282.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.0001464/0.03058, allocations: 173.4 kB / 276.7 MB, free: 13.14 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.323e-05/0.03065, allocations: 63.92 kB / 276.8 MB, free: 13.08 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003054/0.03095, allocations: 306.6 kB / 277.1 MB, free: 12.76 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.387e-06/0.03095, allocations: 4 kB / 277.1 MB, free: 12.76 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.064e-06/0.03096, allocations: 0 / 277.1 MB, free: 12.76 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.03096, allocations: 3.984 kB / 277.1 MB, free: 12.75 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008741/0.03184, allocations: 0.7794 MB / 277.9 MB, free: 11.92 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.03184, allocations: 0 / 277.9 MB, free: 11.92 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001708/0.03201, allocations: 79.91 kB / 278 MB, free: 11.84 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000121/0.03213, allocations: 79.41 kB / 278.1 MB, free: 11.77 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001146/0.03224, allocations: 61.83 kB / 278.1 MB, free: 11.7 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.474e-05/0.03226, allocations: 8 kB / 278.1 MB, free: 11.69 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001112/0.03337, allocations: 2.585 MB / 280.7 MB, free: 8.934 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.03337, allocations: 3.938 kB / 280.7 MB, free: 8.93 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004482/0.03382, allocations: 494.8 kB / 281.2 MB, free: 8.402 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.062e-05/0.03387, allocations: 16 kB / 281.2 MB, free: 8.387 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001706/0.03404, allocations: 27.92 kB / 281.2 MB, free: 8.359 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.131e-05/0.03411, allocations: 43.81 kB / 281.3 MB, free: 8.316 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.431e-05/0.03412, allocations: 12 kB / 281.3 MB, free: 8.305 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002456/0.03437, allocations: 327.3 kB / 281.6 MB, free: 7.988 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03437, allocations: 0 / 281.6 MB, free: 7.988 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000454/0.03482, allocations: 204 kB / 281.8 MB, free: 7.789 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.0001639/0.03498, allocations: 112.3 kB / 281.9 MB, free: 7.672 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004875/0.03547, allocations: 0.54 MB / 282.5 MB, free: 7.109 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.738e-05/0.0355, allocations: 16.48 kB / 282.5 MB, free: 7.094 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003219/0.03582, allocations: 387.2 kB / 282.9 MB, free: 6.688 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001161/0.03698, allocations: 2.074 MB / 284.9 MB, free: 4.211 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01083/0.04781, allocations: 1.745 MB / 286.7 MB, free: 2.398 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001734/0.04798, allocations: 195.3 kB / 286.9 MB, free: 2.188 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002944/0.04827, allocations: 94.77 kB / 287 MB, free: 2.09 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003845/0.04866, allocations: 237.2 kB / 287.2 MB, free: 1.859 MB / 282.7 MB Notification: Performance of SimCode: time 7.42e-07/0.04866, allocations: 0 / 287.2 MB, free: 1.859 MB / 282.7 MB Notification: Performance of Templates: time 0.1118/0.1604, allocations: 11.33 MB / 298.5 MB, free: 27.51 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 -emit_protected -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.933011702261865]