Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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.DCEE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcee.airGapDC.psi_e|dcee.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcee.airGapDC.psi_e|dcee.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001092/0.001092, allocations: 115.7 kB / 17.78 MB, free: 5.129 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001161/0.001161, allocations: 201.2 kB / 18.73 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.385/1.385, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 59.89 kB / 358.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2522/0.2535, allocations: 50.55 MB / 409.3 MB, free: 1.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start): time 0.008336/0.2618, allocations: 7.992 MB / 417.3 MB, free: 9.719 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004242/0.2661, allocations: 2.63 MB / 419.9 MB, free: 7.082 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001036/0.2672, allocations: 23.94 kB / 419.9 MB, free: 7.059 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002008/0.2692, allocations: 0.5442 MB / 420.4 MB, free: 6.512 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002201/0.2715, allocations: 460.4 kB / 420.9 MB, free: 6.059 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008531/0.2724, allocations: 243.7 kB / 421.1 MB, free: 5.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001739/0.2741, allocations: 1.424 MB / 422.6 MB, free: 4.391 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008117/0.2749, allocations: 0.5885 MB / 423.1 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008008/0.2757, allocations: 0.5447 MB / 423.7 MB, free: 3.23 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006748/0.2764, allocations: 0.5794 MB / 424.3 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001527/0.2766, allocations: 136 kB / 424.4 MB, free: 2.516 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003509/0.277, allocations: 176 kB / 424.6 MB, free: 2.344 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002061/0.2772, allocations: 271 kB / 424.8 MB, free: 2.078 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005744/0.2778, allocations: 0.6493 MB / 425.5 MB, free: 1.426 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001719/0.2795, allocations: 1.708 MB / 427.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.2795, allocations: 4 kB / 427.2 MB, free: 15.7 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2795, allocations: 0 / 427.2 MB, free: 15.7 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.648e-05/0.2795, allocations: 0 / 427.2 MB, free: 15.7 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.00211/0.2816, allocations: 1.455 MB / 428.7 MB, free: 14.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.252e-05/0.2817, allocations: 8.031 kB / 428.7 MB, free: 14.19 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005159/0.2822, allocations: 180 kB / 428.8 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001044/0.2833, allocations: 0.7307 MB / 429.6 MB, free: 13.24 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.267e-05/0.2833, allocations: 70 kB / 429.6 MB, free: 13.17 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001205/0.2835, allocations: 99.95 kB / 429.7 MB, free: 13.07 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001514/0.285, allocations: 0.9268 MB / 430.7 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.131e-05/0.285, allocations: 0 / 430.7 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.413e-05/0.2851, allocations: 44 kB / 430.7 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.879e-05/0.2851, allocations: 23.94 kB / 430.7 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001196/0.2863, allocations: 0.6286 MB / 431.4 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00465/0.291, allocations: 3.891 MB / 435.3 MB, free: 7.297 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005871/0.2916, allocations: 339.7 kB / 435.6 MB, free: 6.938 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002677/0.2919, allocations: 156.7 kB / 435.7 MB, free: 6.781 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.184e-05/0.2919, allocations: 4 kB / 435.7 MB, free: 6.777 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.969e-05/0.292, allocations: 34.56 kB / 435.8 MB, free: 6.734 MB / 350.1 MB Notification: Performance of pre-optimization done (n=32): time 2.635e-06/0.292, allocations: 0 / 435.8 MB, free: 6.734 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002169/0.2942, allocations: 1.216 MB / 437 MB, free: 5.445 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.401e-05/0.2942, allocations: 81.11 kB / 437.1 MB, free: 5.348 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009976/0.2952, allocations: 0.8214 MB / 437.9 MB, free: 4.516 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.43e-05/0.2953, allocations: 29.7 kB / 437.9 MB, free: 4.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003752/0.2957, allocations: 0.5928 MB / 438.5 MB, free: 3.879 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.813e-05/0.2958, allocations: 134.9 kB / 438.6 MB, free: 3.746 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001511/0.2959, allocations: 126.6 kB / 438.8 MB, free: 3.617 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001206/0.296, allocations: 330 kB / 439.1 MB, free: 3.289 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002863/0.2963, allocations: 149.9 kB / 439.2 MB, free: 3.145 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004846/0.2968, allocations: 460 kB / 439.7 MB, free: 2.551 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008071/0.2976, allocations: 0.6396 MB / 440.3 MB, free: 1.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.501e-06/0.2977, allocations: 4 kB / 440.3 MB, free: 1.766 MB / 350.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001142/0.2988, allocations: 0.6891 MB / 441 MB, free: 1.066 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.36e-05/0.2988, allocations: 12 kB / 441 MB, free: 1.055 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.27e-05/0.2989, allocations: 8 kB / 441 MB, free: 1.047 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001668/0.299, allocations: 36.89 kB / 441.1 MB, free: 1.008 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004596/0.2995, allocations: 155.7 kB / 441.2 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001017/0.3005, allocations: 1.398 MB / 442.6 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004596/0.301, allocations: 36.14 kB / 442.7 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.799e-05/0.3011, allocations: 32 kB / 442.7 MB, free: 15.25 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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 (84): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003392/0.3014, allocations: 261.5 kB / 442.9 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001103/0.3015, allocations: 91.38 kB / 443 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006788/0.3022, allocations: 378.1 kB / 443.4 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.3022, allocations: 4 kB / 443.4 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.946e-06/0.3022, allocations: 0 / 443.4 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.3022, allocations: 3.984 kB / 443.4 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001675/0.3039, allocations: 1.266 MB / 444.7 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.898e-06/0.3039, allocations: 0 / 444.7 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003115/0.3043, allocations: 75.83 kB / 444.8 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.703e-05/0.3044, allocations: 29.06 kB / 444.8 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.232e-05/0.3044, allocations: 8 kB / 444.8 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000943/0.3053, allocations: 1.379 MB / 446.2 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.3054, allocations: 3.938 kB / 446.2 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00106/0.3064, allocations: 0.6291 MB / 446.8 MB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002908/0.3067, allocations: 192.5 kB / 447 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.429e-05/0.3068, allocations: 12 kB / 447 MB, free: 10.63 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000357/0.3072, allocations: 23.92 kB / 447 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.952e-05/0.3073, allocations: 35.89 kB / 447.1 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.918e-05/0.3073, allocations: 8 kB / 447.1 MB, free: 10.56 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007557/0.3081, allocations: 0.5615 MB / 447.6 MB, free: 10 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3081, allocations: 0 / 447.6 MB, free: 10 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006917/0.3088, allocations: 195.9 kB / 447.8 MB, free: 9.812 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (dcee.inertiaRotor.w,dcee.la.i,dcee.airGapDC.psi_e,loadInertia.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 (34): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.000199/0.309, allocations: 118.8 kB / 447.9 MB, free: 9.688 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009341/0.3099, allocations: 0.5123 MB / 448.4 MB, free: 9.164 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.3099, allocations: 192 / 448.4 MB, free: 9.164 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003942/0.3103, allocations: 270.4 kB / 448.7 MB, free: 8.887 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009549/0.3113, allocations: 214 kB / 448.9 MB, free: 8.688 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002426/0.3137, allocations: 1.716 MB / 450.6 MB, free: 6.918 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005133/0.3143, allocations: 1 MB / 451.6 MB, free: 5.891 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003154/0.3146, allocations: 98.88 kB / 451.7 MB, free: 5.789 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001117/0.3147, allocations: 55.44 kB / 451.8 MB, free: 5.734 MB / 366.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3147, allocations: 4 kB / 451.8 MB, free: 5.73 MB / 366.1 MB Notification: Performance of Templates: time 0.01795/0.3327, allocations: 9.663 MB / 461.5 MB, free: 12.18 MB / 382.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCEE_Start/DCEE_Start.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches