Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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.001547/0.001547, allocations: 112.2 kB / 21.19 MB, free: 0.7617 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.001685/0.001685, allocations: 209.9 kB / 24.49 MB, free: 4.145 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.402/1.402, allocations: 230.6 MB / 258.3 MB, free: 8.004 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_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001549/0.001549, allocations: 51.92 kB / 379 MB, free: 2.605 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.219/0.2206, allocations: 53.37 MB / 432.4 MB, free: 6.906 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01322/0.2338, allocations: 11.84 MB / 444.2 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005921/0.2397, allocations: 3.273 MB / 447.5 MB, free: 7.738 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001194/0.2409, allocations: 39.81 kB / 447.6 MB, free: 7.699 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001705/0.2426, allocations: 0.6714 MB / 448.2 MB, free: 7.023 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001837/0.2445, allocations: 0.7251 MB / 449 MB, free: 6.293 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008182/0.2453, allocations: 407.4 kB / 449.3 MB, free: 5.895 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002546/0.2478, allocations: 2.249 MB / 451.6 MB, free: 3.641 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009741/0.2488, allocations: 0.6459 MB / 452.2 MB, free: 2.941 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001136/0.2499, allocations: 0.8795 MB / 453.1 MB, free: 2.059 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001101/0.251, allocations: 0.9139 MB / 454 MB, free: 1.141 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002581/0.2513, allocations: 220 kB / 454.3 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004172/0.2517, allocations: 255.9 kB / 454.5 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003267/0.252, allocations: 426.5 kB / 454.9 MB, free: 264 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000967/0.253, allocations: 1.023 MB / 455.9 MB, free: 15.23 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002794/0.2558, allocations: 2.691 MB / 458.6 MB, free: 12.53 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.2558, allocations: 0 / 458.6 MB, free: 12.53 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2558, allocations: 0 / 458.6 MB, free: 12.53 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.713e-05/0.2558, allocations: 0 / 458.6 MB, free: 12.53 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.003528/0.2594, allocations: 2.041 MB / 460.7 MB, free: 10.44 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.2594, allocations: 8.031 kB / 460.7 MB, free: 10.43 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008229/0.2602, allocations: 267.6 kB / 460.9 MB, free: 10.17 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001779/0.262, allocations: 0.9686 MB / 461.9 MB, free: 9.172 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001005/0.2621, allocations: 119.5 kB / 462 MB, free: 9.055 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000208/0.2623, allocations: 163.8 kB / 462.2 MB, free: 8.895 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002453/0.2648, allocations: 1.483 MB / 463.7 MB, free: 7.336 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.774e-05/0.2648, allocations: 11.98 kB / 463.7 MB, free: 7.324 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001233/0.2649, allocations: 64 kB / 463.7 MB, free: 7.262 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.064e-05/0.265, allocations: 40 kB / 463.8 MB, free: 7.223 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001844/0.2668, allocations: 0.9746 MB / 464.8 MB, free: 6.242 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008291/0.2751, allocations: 6.388 MB / 471.1 MB, free: 15.51 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000795/0.2759, allocations: 379.9 kB / 471.5 MB, free: 15.13 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004095/0.2763, allocations: 203.7 kB / 471.7 MB, free: 14.93 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.659e-05/0.2763, allocations: 12.41 kB / 471.7 MB, free: 14.92 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004981/0.2768, allocations: 264.8 kB / 472 MB, free: 14.64 MB / 382.1 MB Notification: Performance of pre-optimization done (n=50): time 1.873e-06/0.2768, allocations: 4 kB / 472 MB, free: 14.63 MB / 382.1 MB Notification: Performance of matching and sorting (n=56): time 0.003031/0.2799, allocations: 1.564 MB / 473.6 MB, free: 13.04 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001103/0.28, allocations: 166.7 kB / 473.7 MB, free: 12.84 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001683/0.2817, allocations: 1.281 MB / 475 MB, free: 11.54 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.779e-05/0.2817, allocations: 37.7 kB / 475 MB, free: 11.5 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007226/0.2824, allocations: 0.8895 MB / 475.9 MB, free: 10.6 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001748/0.2826, allocations: 222.2 kB / 476.1 MB, free: 10.38 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002763/0.2829, allocations: 222.8 kB / 476.4 MB, free: 10.16 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001655/0.2831, allocations: 353.9 kB / 476.7 MB, free: 9.805 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004579/0.2835, allocations: 230.5 kB / 476.9 MB, free: 9.578 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009168/0.2844, allocations: 0.8033 MB / 477.7 MB, free: 8.504 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001498/0.2859, allocations: 1.113 MB / 478.8 MB, free: 7.121 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.995e-06/0.2859, allocations: 4 kB / 478.9 MB, free: 7.117 MB / 382.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001949/0.2879, allocations: 1.176 MB / 480 MB, free: 5.922 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.587e-05/0.2879, allocations: 37.7 kB / 480.1 MB, free: 5.879 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.438e-05/0.288, allocations: 20 kB / 480.1 MB, free: 5.859 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002356/0.2882, allocations: 73.62 kB / 480.2 MB, free: 5.781 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007761/0.289, allocations: 267.5 kB / 480.4 MB, free: 5.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002072/0.291, allocations: 2.586 MB / 483 MB, free: 2.707 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008652/0.2919, allocations: 67.92 kB / 483.1 MB, free: 2.641 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.002e-05/0.292, allocations: 56 kB / 483.1 MB, free: 2.586 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005701/0.2925, allocations: 361.4 kB / 483.5 MB, free: 2.223 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001524/0.2927, allocations: 139.1 kB / 483.6 MB, free: 2.086 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001028/0.2937, allocations: 0.5473 MB / 484.2 MB, free: 1.516 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.235e-06/0.2937, allocations: 8 kB / 484.2 MB, free: 1.508 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.2937, allocations: 0 / 484.2 MB, free: 1.508 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.2937, allocations: 0 / 484.2 MB, free: 1.508 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002715/0.2965, allocations: 1.83 MB / 486 MB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.592e-06/0.2965, allocations: 4 kB / 486 MB, free: 15.56 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004221/0.2969, allocations: 108.3 kB / 486.1 MB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001411/0.297, allocations: 49.69 kB / 486.2 MB, free: 15.4 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.438e-05/0.2971, allocations: 16 kB / 486.2 MB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001947/0.299, allocations: 2.539 MB / 488.7 MB, free: 12.62 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.651e-06/0.299, allocations: 11.94 kB / 488.7 MB, free: 12.61 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001554/0.3006, allocations: 0.9228 MB / 489.6 MB, free: 11.61 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004431/0.301, allocations: 183.1 kB / 489.8 MB, free: 11.43 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001406/0.3012, allocations: 19.98 kB / 489.8 MB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005131/0.3017, allocations: 31.98 kB / 489.9 MB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001076/0.3018, allocations: 63.72 kB / 489.9 MB, free: 11.32 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.387e-05/0.3018, allocations: 16 kB / 490 MB, free: 11.3 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001191/0.303, allocations: 0.8539 MB / 490.8 MB, free: 10.45 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.303, allocations: 0 / 490.8 MB, free: 10.45 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001111/0.3041, allocations: 303.9 kB / 491.1 MB, free: 10.15 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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,1,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.0002347/0.3043, allocations: 135.1 kB / 491.2 MB, free: 10.01 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001573/0.3059, allocations: 0.8972 MB / 492.1 MB, free: 9.078 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.3059, allocations: 4 kB / 492.1 MB, free: 9.074 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006552/0.3066, allocations: 450.2 kB / 492.6 MB, free: 8.609 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001416/0.308, allocations: 339.2 kB / 492.9 MB, free: 8.289 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004101/0.3121, allocations: 2.585 MB / 495.5 MB, free: 5.613 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008342/0.3129, allocations: 1.182 MB / 496.7 MB, free: 4.402 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002235/0.3132, allocations: 99.42 kB / 496.8 MB, free: 4.305 MB / 398.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3132, allocations: 0 / 496.8 MB, free: 4.305 MB / 398.1 MB Notification: Performance of Templates: time 0.03927/0.3524, allocations: 31.82 MB / 0.5162 GB, free: 4.52 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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: 9.31763319997117]