Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.001558/0.001558, allocations: 114.5 kB / 21.17 MB, free: 0.6172 MB / 14.72 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.001638/0.001638, allocations: 206.2 kB / 24.47 MB, free: 4.023 MB / 14.72 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.438/1.438, allocations: 230.2 MB / 257.8 MB, free: 8.527 MB / 206.1 MB " [Timeout remaining time 178] 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.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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001861/0.001861, allocations: 67.88 kB / 378.5 MB, free: 3.004 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2344/0.2363, allocations: 53.31 MB / 431.8 MB, free: 7.477 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.0144/0.2507, allocations: 12.25 MB / 444.1 MB, free: 11.17 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006223/0.2569, allocations: 3.311 MB / 447.4 MB, free: 7.844 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001192/0.2581, allocations: 35.94 kB / 447.4 MB, free: 7.809 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001698/0.2598, allocations: 0.6907 MB / 448.1 MB, free: 7.113 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002269/0.2621, allocations: 0.7911 MB / 448.9 MB, free: 6.316 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009541/0.263, allocations: 403.5 kB / 449.3 MB, free: 5.922 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00306/0.2661, allocations: 2.413 MB / 451.7 MB, free: 3.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001037/0.2671, allocations: 0.6574 MB / 452.4 MB, free: 2.789 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001429/0.2685, allocations: 0.9144 MB / 453.3 MB, free: 1.871 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001236/0.2698, allocations: 0.9839 MB / 454.3 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002799/0.2701, allocations: 228 kB / 454.5 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004513/0.2705, allocations: 264 kB / 454.8 MB, free: 412 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003683/0.2709, allocations: 466.3 kB / 455.2 MB, free: 15.95 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001048/0.2719, allocations: 1.073 MB / 456.3 MB, free: 14.87 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003102/0.275, allocations: 2.84 MB / 459.1 MB, free: 12.02 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.275, allocations: 0 / 459.1 MB, free: 12.02 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.275, allocations: 0 / 459.1 MB, free: 12.02 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.435e-05/0.2751, allocations: 0 / 459.1 MB, free: 12.02 MB / 366.1 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.003968/0.279, allocations: 2.216 MB / 461.4 MB, free: 9.738 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.525e-05/0.2791, allocations: 8.031 kB / 461.4 MB, free: 9.73 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009514/0.28, allocations: 291.5 kB / 461.6 MB, free: 9.445 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00197/0.282, allocations: 1.135 MB / 462.8 MB, free: 8.254 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.656e-05/0.2821, allocations: 115.5 kB / 462.9 MB, free: 8.141 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002333/0.2823, allocations: 167.9 kB / 463.1 MB, free: 7.977 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00267/0.285, allocations: 1.504 MB / 464.6 MB, free: 6.41 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.152e-05/0.285, allocations: 11.89 kB / 464.6 MB, free: 6.398 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001306/0.2852, allocations: 64 kB / 464.6 MB, free: 6.336 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.372e-05/0.2852, allocations: 36 kB / 464.7 MB, free: 6.301 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002213/0.2874, allocations: 1.049 MB / 465.7 MB, free: 5.246 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009348/0.2968, allocations: 6.244 MB / 472 MB, free: 14.71 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002464/0.2992, allocations: 0.5807 MB / 472.5 MB, free: 14.11 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001391/0.3006, allocations: 434.3 kB / 473 MB, free: 13.69 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.061e-05/0.3007, allocations: 8.562 kB / 473 MB, free: 13.68 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.349e-05/0.3007, allocations: 39.12 kB / 473 MB, free: 13.63 MB / 382.1 MB Notification: Performance of pre-optimization done (n=66): time 3.096e-06/0.3007, allocations: 0 / 473 MB, free: 13.63 MB / 382.1 MB Notification: Performance of matching and sorting (n=72): time 0.007472/0.3082, allocations: 2.383 MB / 475.4 MB, free: 11.16 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001066/0.3083, allocations: 123.5 kB / 475.5 MB, free: 11.02 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002744/0.311, allocations: 1.306 MB / 476.8 MB, free: 9.699 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7e-05/0.3111, allocations: 37.7 kB / 476.9 MB, free: 9.656 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001023/0.3121, allocations: 0.8749 MB / 477.7 MB, free: 8.773 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003015/0.3124, allocations: 265.8 kB / 478 MB, free: 8.512 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000424/0.3129, allocations: 214.8 kB / 478.2 MB, free: 8.297 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000209/0.3131, allocations: 345.9 kB / 478.5 MB, free: 7.953 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009108/0.314, allocations: 286.4 kB / 478.8 MB, free: 7.672 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001417/0.3154, allocations: 0.7381 MB / 479.6 MB, free: 6.719 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002386/0.3178, allocations: 1.088 MB / 480.6 MB, free: 5.426 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-05/0.3178, allocations: 4 kB / 480.7 MB, free: 5.422 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.003648/0.3214, allocations: 1.269 MB / 481.9 MB, free: 4.137 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.965e-05/0.3215, allocations: 12 kB / 481.9 MB, free: 4.125 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.368e-05/0.3215, allocations: 12 kB / 481.9 MB, free: 4.113 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006811/0.3222, allocations: 138.6 kB / 482.1 MB, free: 3.969 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001339/0.3235, allocations: 255.6 kB / 482.3 MB, free: 3.719 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005959/0.3295, allocations: 4.642 MB / 487 MB, free: 14.65 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001399/0.3309, allocations: 59.81 kB / 487 MB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000117/0.331, allocations: 59.98 kB / 487.1 MB, free: 14.54 MB / 398.1 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.0008208/0.3318, allocations: 349.5 kB / 487.4 MB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003124/0.3321, allocations: 147.2 kB / 487.6 MB, free: 14.04 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002707/0.3348, allocations: 0.8295 MB / 488.4 MB, free: 13.19 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-05/0.3348, allocations: 7.938 kB / 488.4 MB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.3348, allocations: 4 kB / 488.4 MB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.31e-05/0.3349, allocations: 7.922 kB / 488.4 MB, free: 13.17 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0058/0.3407, allocations: 2.319 MB / 490.7 MB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.548e-06/0.3407, allocations: 4 kB / 490.7 MB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000881/0.3416, allocations: 127.8 kB / 490.9 MB, free: 10.6 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000634/0.3422, allocations: 142.6 kB / 491 MB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.383e-05/0.3423, allocations: 16 kB / 491 MB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006503/0.3488, allocations: 4.788 MB / 495.8 MB, free: 5.234 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.135e-06/0.3488, allocations: 7.984 kB / 495.8 MB, free: 5.227 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003547/0.3523, allocations: 1.305 MB / 497.1 MB, free: 3.848 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006714/0.353, allocations: 292.2 kB / 497.4 MB, free: 3.543 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002501/0.3532, allocations: 20 kB / 497.4 MB, free: 3.523 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009902/0.3542, allocations: 39.97 kB / 497.5 MB, free: 3.484 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001756/0.3544, allocations: 64.34 kB / 497.5 MB, free: 3.422 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.523e-05/0.3545, allocations: 20 kB / 497.6 MB, free: 3.402 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001709/0.3562, allocations: 0.8859 MB / 498.4 MB, free: 2.516 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3562, allocations: 0 / 498.4 MB, free: 2.516 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001576/0.3577, allocations: 327.9 kB / 498.8 MB, free: 2.195 MB / 398.1 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.0002636/0.358, allocations: 131.1 kB / 498.9 MB, free: 2.059 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002371/0.3604, allocations: 1.094 MB / 500 MB, free: 0.9258 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.3604, allocations: 0 / 500 MB, free: 0.9258 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001312/0.3617, allocations: 0.6865 MB / 0.4889 GB, free: 204 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002083/0.3638, allocations: 378.7 kB / 0.4893 GB, free: 15.84 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006868/0.3706, allocations: 2.961 MB / 0.4922 GB, free: 12.8 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001221/0.3719, allocations: 1.21 MB / 0.4934 GB, free: 11.56 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0008638/0.3727, allocations: 175.6 kB / 0.4935 GB, free: 11.38 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003291/0.3731, allocations: 95.42 kB / 0.4936 GB, free: 11.29 MB / 414.1 MB Notification: Performance of SimCode: time 9.62e-07/0.3731, allocations: 4 kB / 0.4936 GB, free: 11.29 MB / 414.1 MB Notification: Performance of Templates: time 0.03977/0.4128, allocations: 18.51 MB / 0.5117 GB, free: 8.938 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 5.229828208684921]