Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.001028/0.001028, allocations: 84 kB / 21.43 MB, free: 3.129 MB / 18.57 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.004711/0.004711, allocations: 145.8 kB / 24.68 MB, free: 9.426 MB / 18.57 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.8301/0.8301, allocations: 173.4 MB / 201.2 MB, free: 9.434 MB / 186.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.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.092e-06/1.092e-06, allocations: 0 / 319.7 MB, free: 5.844 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.52e-05/1.629e-05, allocations: 6.219 kB / 319.7 MB, free: 5.836 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.007286/0.007302, allocations: 10.55 MB / 330.3 MB, free: 11.23 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003708/0.01101, allocations: 3.105 MB / 333.4 MB, free: 8.109 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004893/0.0115, allocations: 43.81 kB / 333.4 MB, free: 8.066 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001081/0.01258, allocations: 0.6439 MB / 334.1 MB, free: 7.418 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009326/0.01351, allocations: 0.8295 MB / 334.9 MB, free: 6.582 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004628/0.01398, allocations: 403.5 kB / 335.3 MB, free: 6.188 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001549/0.01552, allocations: 2.504 MB / 337.8 MB, free: 3.676 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006574/0.01618, allocations: 0.607 MB / 338.4 MB, free: 3.016 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00119/0.01737, allocations: 1.395 MB / 339.8 MB, free: 1.617 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006373/0.01801, allocations: 0.7165 MB / 340.5 MB, free: 0.8945 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001871/0.0182, allocations: 232 kB / 340.7 MB, free: 0.668 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002612/0.01846, allocations: 267.9 kB / 341 MB, free: 416 kB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002116/0.01867, allocations: 470.2 kB / 341.4 MB, free: 15.95 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004788/0.01915, allocations: 0.7365 MB / 342.2 MB, free: 15.21 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001667/0.02082, allocations: 2.839 MB / 345 MB, free: 12.36 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.02082, allocations: 4 kB / 345 MB, free: 12.36 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.02082, allocations: 0 / 345 MB, free: 12.36 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.109e-05/0.02085, allocations: 0 / 345 MB, free: 12.36 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.002249/0.0231, allocations: 2.114 MB / 347.1 MB, free: 10.2 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.277e-05/0.02313, allocations: 8.922 kB / 347.1 MB, free: 10.19 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004983/0.02363, allocations: 295.5 kB / 347.4 MB, free: 9.902 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001186/0.02482, allocations: 1.043 MB / 348.5 MB, free: 8.816 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.702e-05/0.02487, allocations: 115.5 kB / 348.6 MB, free: 8.703 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001408/0.02501, allocations: 164.3 kB / 348.8 MB, free: 8.543 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001593/0.02661, allocations: 1.609 MB / 350.4 MB, free: 6.848 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.585e-05/0.02664, allocations: 11.95 kB / 350.4 MB, free: 6.836 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.929e-05/0.02672, allocations: 67.98 kB / 350.4 MB, free: 6.77 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.07e-05/0.02674, allocations: 36 kB / 350.5 MB, free: 6.734 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001282/0.02802, allocations: 1.045 MB / 351.5 MB, free: 5.684 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004516/0.03254, allocations: 5.416 MB / 356.9 MB, free: 15.98 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000907/0.03345, allocations: 0.5657 MB / 357.5 MB, free: 15.41 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005519/0.034, allocations: 426.5 kB / 357.9 MB, free: 14.99 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.2e-05/0.03403, allocations: 8.656 kB / 357.9 MB, free: 14.98 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.654e-05/0.03406, allocations: 47.16 kB / 358 MB, free: 14.93 MB / 330.7 MB Notification: Performance of pre-optimization done (n=66): time 1.684e-06/0.03406, allocations: 0 / 358 MB, free: 14.93 MB / 330.7 MB Notification: Performance of matching and sorting (n=72): time 0.002886/0.03694, allocations: 2.166 MB / 360.1 MB, free: 12.73 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.578e-05/0.03701, allocations: 111.5 kB / 360.2 MB, free: 12.6 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00108/0.03809, allocations: 1.172 MB / 361.4 MB, free: 11.41 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.178e-05/0.03812, allocations: 37.7 kB / 361.5 MB, free: 11.37 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004154/0.03854, allocations: 0.8818 MB / 362.3 MB, free: 10.48 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001424/0.03868, allocations: 269.7 kB / 362.6 MB, free: 10.21 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00018/0.03886, allocations: 202.8 kB / 362.8 MB, free: 10.01 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001048/0.03896, allocations: 357.9 kB / 363.1 MB, free: 9.656 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003655/0.03933, allocations: 278.5 kB / 363.4 MB, free: 9.383 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005584/0.03989, allocations: 0.7887 MB / 364.2 MB, free: 8.367 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00103/0.04092, allocations: 1.084 MB / 365.3 MB, free: 7.074 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.414e-06/0.04093, allocations: 8 kB / 365.3 MB, free: 7.066 MB / 330.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.001393/0.04232, allocations: 1.245 MB / 366.5 MB, free: 5.805 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.86e-05/0.04234, allocations: 16.09 kB / 366.6 MB, free: 5.789 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.365e-05/0.04235, allocations: 16 kB / 366.6 MB, free: 5.773 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002962/0.04265, allocations: 138.4 kB / 366.7 MB, free: 5.629 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004404/0.04309, allocations: 255.6 kB / 367 MB, free: 5.379 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002337/0.04542, allocations: 4.244 MB / 371.2 MB, free: 0.8281 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003886/0.04581, allocations: 60.08 kB / 371.3 MB, free: 0.7695 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.48e-05/0.04586, allocations: 52 kB / 371.3 MB, free: 0.7188 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0003532/0.04621, allocations: 360.3 kB / 371.7 MB, free: 368 kB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001051/0.04632, allocations: 139.1 kB / 371.8 MB, free: 228 kB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009807/0.0473, allocations: 0.8087 MB / 372.6 MB, free: 15.39 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.0473, allocations: 8.141 kB / 372.6 MB, free: 15.39 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.04731, allocations: 7.922 kB / 372.6 MB, free: 15.38 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.142e-06/0.04731, allocations: 7.984 kB / 372.6 MB, free: 15.37 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002064/0.04938, allocations: 1.961 MB / 374.6 MB, free: 13.31 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.04938, allocations: 0 / 374.6 MB, free: 13.31 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002835/0.04966, allocations: 132.3 kB / 374.7 MB, free: 13.18 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002428/0.04991, allocations: 130.4 kB / 374.9 MB, free: 13.05 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.844e-05/0.04993, allocations: 20.06 kB / 374.9 MB, free: 13.03 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002308/0.05224, allocations: 4.385 MB / 379.3 MB, free: 8.336 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.377e-06/0.05225, allocations: 8.062 kB / 379.3 MB, free: 8.328 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001315/0.05356, allocations: 1.281 MB / 380.5 MB, free: 6.977 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002435/0.0538, allocations: 195.2 kB / 380.7 MB, free: 6.785 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.071e-05/0.05389, allocations: 20 kB / 380.8 MB, free: 6.766 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002811/0.05417, allocations: 39.97 kB / 380.8 MB, free: 6.727 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.863e-05/0.05426, allocations: 64.27 kB / 380.9 MB, free: 6.664 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.425e-05/0.05428, allocations: 31.94 kB / 380.9 MB, free: 6.633 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000704/0.05498, allocations: 0.7724 MB / 381.7 MB, free: 5.855 MB / 346.7 MB Notification: Performance of sort global known variables: time 8e-08/0.05498, allocations: 0 / 381.7 MB, free: 5.855 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000674/0.05566, allocations: 327.9 kB / 382 MB, free: 5.535 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001891/0.05585, allocations: 135.2 kB / 382.1 MB, free: 5.395 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001063/0.05691, allocations: 1.081 MB / 383.2 MB, free: 4.277 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.05691, allocations: 4.312 kB / 383.2 MB, free: 4.273 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005544/0.05747, allocations: 0.6899 MB / 383.9 MB, free: 3.543 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008273/0.0583, allocations: 335.5 kB / 384.2 MB, free: 3.219 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003009/0.0613, allocations: 2.816 MB / 387 MB, free: 320 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000442/0.06175, allocations: 0.6338 MB / 387.7 MB, free: 15.64 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000164/0.06191, allocations: 96.42 kB / 387.8 MB, free: 15.55 MB / 362.7 MB Notification: Performance of SimCode: time 7.92e-07/0.06191, allocations: 0 / 387.8 MB, free: 15.55 MB / 362.7 MB Notification: Performance of Templates: time 0.0257/0.08761, allocations: 41.19 MB / 429 MB, free: 6.383 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.821253999136388]