Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.001311/0.001311, allocations: 107.6 kB / 21.18 MB, free: 0.5273 MB / 14.72 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.001426/0.001426, allocations: 204.8 kB / 24.48 MB, free: 3.695 MB / 14.72 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 1.492/1.492, allocations: 230.6 MB / 258.2 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] 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.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.1.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.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00152/0.00152, allocations: 55.91 kB / 379 MB, free: 2.473 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2285/0.23, allocations: 53.36 MB / 432.3 MB, free: 6.734 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.0135/0.2435, allocations: 10.57 MB / 442.9 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006252/0.2498, allocations: 3.14 MB / 446 MB, free: 8.973 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001193/0.251, allocations: 47.75 kB / 446.1 MB, free: 8.926 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001653/0.2526, allocations: 0.6362 MB / 446.7 MB, free: 8.285 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001816/0.2544, allocations: 0.7833 MB / 447.5 MB, free: 7.496 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007814/0.2552, allocations: 403.5 kB / 447.9 MB, free: 7.102 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002724/0.2579, allocations: 2.42 MB / 450.3 MB, free: 4.676 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009981/0.2589, allocations: 0.6578 MB / 451 MB, free: 3.965 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00128/0.2602, allocations: 0.9379 MB / 451.9 MB, free: 3.023 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001168/0.2614, allocations: 0.98 MB / 452.9 MB, free: 2.039 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002855/0.2617, allocations: 232 kB / 453.1 MB, free: 1.812 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004383/0.2621, allocations: 268 kB / 453.4 MB, free: 1.551 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003831/0.2625, allocations: 458.4 kB / 453.8 MB, free: 1.102 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009057/0.2634, allocations: 0.8711 MB / 454.7 MB, free: 232 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002924/0.2663, allocations: 2.86 MB / 457.6 MB, free: 13.35 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.2663, allocations: 4 kB / 457.6 MB, free: 13.35 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.696e-06/0.2663, allocations: 3.984 kB / 457.6 MB, free: 13.34 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.804e-05/0.2664, allocations: 0 / 457.6 MB, free: 13.34 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.003846/0.2702, allocations: 2.137 MB / 459.7 MB, free: 11.17 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.686e-05/0.2702, allocations: 12.03 kB / 459.7 MB, free: 11.16 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000944/0.2712, allocations: 287.5 kB / 460 MB, free: 10.88 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001942/0.2731, allocations: 1.048 MB / 461.1 MB, free: 9.785 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.063e-05/0.2732, allocations: 115.5 kB / 461.2 MB, free: 9.672 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002394/0.2735, allocations: 167.8 kB / 461.3 MB, free: 9.508 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002772/0.2762, allocations: 1.608 MB / 462.9 MB, free: 7.812 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.827e-05/0.2763, allocations: 4 kB / 462.9 MB, free: 7.809 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001292/0.2764, allocations: 64 kB / 463 MB, free: 7.746 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.936e-05/0.2765, allocations: 40 kB / 463 MB, free: 7.707 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002073/0.2785, allocations: 1.045 MB / 464.1 MB, free: 6.656 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008138/0.2867, allocations: 5.414 MB / 469.5 MB, free: 0.957 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00159/0.2883, allocations: 0.5622 MB / 470.1 MB, free: 396 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009308/0.2892, allocations: 433.3 kB / 470.5 MB, free: 15.96 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.555e-05/0.2892, allocations: 8.656 kB / 470.5 MB, free: 15.95 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.6e-05/0.2893, allocations: 47.16 kB / 470.5 MB, free: 15.9 MB / 382.1 MB Notification: Performance of pre-optimization done (n=66): time 2.585e-06/0.2893, allocations: 0 / 470.5 MB, free: 15.9 MB / 382.1 MB Notification: Performance of matching and sorting (n=72): time 0.005089/0.2944, allocations: 2.154 MB / 472.7 MB, free: 13.71 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.072e-05/0.2944, allocations: 111.5 kB / 472.8 MB, free: 13.58 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001727/0.2962, allocations: 1.176 MB / 474 MB, free: 12.39 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.453e-05/0.2962, allocations: 37.7 kB / 474 MB, free: 12.35 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006818/0.2969, allocations: 0.8779 MB / 474.9 MB, free: 11.46 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002303/0.2971, allocations: 281.7 kB / 475.2 MB, free: 11.18 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003003/0.2974, allocations: 206.8 kB / 475.4 MB, free: 10.98 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001755/0.2976, allocations: 345.9 kB / 475.7 MB, free: 10.63 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006109/0.2982, allocations: 290.5 kB / 476 MB, free: 10.35 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001006/0.2992, allocations: 0.7887 MB / 476.8 MB, free: 9.332 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001675/0.3009, allocations: 1.088 MB / 477.9 MB, free: 8.039 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.216e-06/0.3009, allocations: 7.938 kB / 477.9 MB, free: 8.031 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.00263/0.3035, allocations: 1.249 MB / 479.1 MB, free: 6.766 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.272e-05/0.3036, allocations: 14.81 kB / 479.1 MB, free: 6.754 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.009e-05/0.3036, allocations: 16 kB / 479.2 MB, free: 6.738 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005244/0.3041, allocations: 143 kB / 479.3 MB, free: 6.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008739/0.305, allocations: 251.6 kB / 479.5 MB, free: 6.344 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004164/0.3092, allocations: 4.252 MB / 483.8 MB, free: 1.785 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00103/0.3102, allocations: 59.97 kB / 483.9 MB, free: 1.727 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.085e-05/0.3103, allocations: 52 kB / 483.9 MB, free: 1.676 MB / 382.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.0006759/0.3109, allocations: 357.4 kB / 484.3 MB, free: 1.316 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002743/0.3112, allocations: 135.2 kB / 484.4 MB, free: 1.184 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001958/0.3132, allocations: 0.8165 MB / 485.2 MB, free: 356 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.027e-05/0.3132, allocations: 8 kB / 485.2 MB, free: 348 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.3132, allocations: 0 / 485.2 MB, free: 348 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.235e-06/0.3132, allocations: 7.922 kB / 485.2 MB, free: 340 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00393/0.3171, allocations: 1.961 MB / 487.2 MB, free: 14.28 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.915e-06/0.3171, allocations: 4 kB / 487.2 MB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006169/0.3178, allocations: 123.9 kB / 487.3 MB, free: 14.15 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004715/0.3182, allocations: 138.6 kB / 487.4 MB, free: 14.01 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.696e-05/0.3183, allocations: 19.98 kB / 487.5 MB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00453/0.3228, allocations: 4.397 MB / 491.9 MB, free: 9.285 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.3228, allocations: 4 kB / 491.9 MB, free: 9.281 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002544/0.3254, allocations: 1.292 MB / 493.2 MB, free: 7.918 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005737/0.3259, allocations: 195.2 kB / 493.3 MB, free: 7.727 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001481/0.3261, allocations: 16 kB / 493.4 MB, free: 7.711 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006462/0.3267, allocations: 43.97 kB / 493.4 MB, free: 7.668 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001549/0.3269, allocations: 68.27 kB / 493.5 MB, free: 7.602 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.874e-05/0.3269, allocations: 23.98 kB / 493.5 MB, free: 7.578 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001186/0.3281, allocations: 0.7724 MB / 494.3 MB, free: 6.801 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3281, allocations: 0 / 494.3 MB, free: 6.801 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001213/0.3293, allocations: 324 kB / 494.6 MB, free: 6.484 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.0002464/0.3296, allocations: 143 kB / 494.7 MB, free: 6.336 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001968/0.3315, allocations: 1.077 MB / 495.8 MB, free: 5.223 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.3315, allocations: 3.938 kB / 495.8 MB, free: 5.219 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001065/0.3326, allocations: 0.6919 MB / 496.5 MB, free: 4.492 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00146/0.3341, allocations: 347.2 kB / 496.8 MB, free: 4.164 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005587/0.3397, allocations: 2.967 MB / 499.8 MB, free: 1.105 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007069/0.3404, allocations: 0.6337 MB / 0.4887 GB, free: 448 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002947/0.3407, allocations: 91.42 kB / 0.4888 GB, free: 360 kB / 398.1 MB Notification: Performance of SimCode: time 1.062e-06/0.3407, allocations: 4 kB / 0.4888 GB, free: 356 kB / 398.1 MB Notification: Performance of Templates: time 0.04972/0.3904, allocations: 41.22 MB / 0.5291 GB, free: 7.156 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 10.491456816002028]