Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.DCSE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001494/0.001494, allocations: 114.6 kB / 17.07 MB, free: 5.988 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001732/0.001732, allocations: 195 kB / 18 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.381/1.381, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009383/0.0009383, allocations: 43.94 kB / 351.3 MB, free: 3.27 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2476/0.2486, allocations: 49.43 MB / 400.7 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.008869/0.2575, allocations: 8.078 MB / 408.8 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004922/0.2624, allocations: 2.649 MB / 411.5 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007799/0.2632, allocations: 23.94 kB / 411.5 MB, free: 14.1 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0014/0.2647, allocations: 0.5403 MB / 412 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009935/0.2657, allocations: 468.3 kB / 412.5 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004658/0.2662, allocations: 259.7 kB / 412.7 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001353/0.2675, allocations: 1.47 MB / 414.2 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007615/0.2683, allocations: 0.5807 MB / 414.8 MB, free: 10.76 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00063/0.269, allocations: 0.5447 MB / 415.3 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006406/0.2696, allocations: 0.5989 MB / 415.9 MB, free: 9.609 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001583/0.2698, allocations: 136 kB / 416.1 MB, free: 9.477 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003061/0.2701, allocations: 180 kB / 416.2 MB, free: 9.301 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002183/0.2703, allocations: 286.9 kB / 416.5 MB, free: 9.02 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005442/0.2709, allocations: 0.6609 MB / 417.2 MB, free: 8.355 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001676/0.2725, allocations: 1.732 MB / 418.9 MB, free: 6.617 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.2726, allocations: 0 / 418.9 MB, free: 6.617 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2726, allocations: 0 / 418.9 MB, free: 6.617 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.822e-05/0.2726, allocations: 0 / 418.9 MB, free: 6.617 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.002208/0.2748, allocations: 1.478 MB / 420.4 MB, free: 5.09 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/0.2749, allocations: 19.89 kB / 420.4 MB, free: 5.07 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006413/0.2755, allocations: 192 kB / 420.6 MB, free: 4.883 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001138/0.2767, allocations: 0.7579 MB / 421.3 MB, free: 4.082 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.959e-05/0.2767, allocations: 70 kB / 421.4 MB, free: 4.016 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001165/0.2768, allocations: 96 kB / 421.5 MB, free: 3.922 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001496/0.2784, allocations: 0.9347 MB / 422.4 MB, free: 2.957 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.492e-05/0.2784, allocations: 11.94 kB / 422.5 MB, free: 2.945 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.427e-05/0.2785, allocations: 40 kB / 422.5 MB, free: 2.906 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.833e-05/0.2785, allocations: 24 kB / 422.5 MB, free: 2.883 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001186/0.2797, allocations: 0.6325 MB / 423.2 MB, free: 2.25 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004558/0.2843, allocations: 3.896 MB / 427 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006632/0.285, allocations: 434 kB / 427.5 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005693/0.2855, allocations: 269.3 kB / 427.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.581e-05/0.2856, allocations: 12.25 kB / 427.7 MB, free: 13.4 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.521e-05/0.2856, allocations: 42.89 kB / 427.8 MB, free: 13.35 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 1.864e-06/0.2856, allocations: 0 / 427.8 MB, free: 13.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.002529/0.2882, allocations: 1.419 MB / 429.2 MB, free: 11.86 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.193e-05/0.2882, allocations: 81.11 kB / 429.3 MB, free: 11.76 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001012/0.2893, allocations: 0.8291 MB / 430.1 MB, free: 10.92 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.049e-05/0.2893, allocations: 33.7 kB / 430.1 MB, free: 10.88 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000374/0.2897, allocations: 0.5696 MB / 430.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000118/0.2898, allocations: 174.6 kB / 430.9 MB, free: 10.13 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001653/0.29, allocations: 130.6 kB / 431 MB, free: 10 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001073/0.2901, allocations: 330 kB / 431.3 MB, free: 9.672 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003272/0.2904, allocations: 169.9 kB / 431.5 MB, free: 9.508 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005008/0.2909, allocations: 460 kB / 432 MB, free: 8.922 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008532/0.2918, allocations: 0.6585 MB / 432.6 MB, free: 8.129 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.801e-06/0.2918, allocations: 4 kB / 432.6 MB, free: 8.125 MB / 350.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001308/0.2931, allocations: 0.771 MB / 433.4 MB, free: 7.344 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.031e-05/0.2932, allocations: 8 kB / 433.4 MB, free: 7.336 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.538e-05/0.2932, allocations: 8 kB / 433.4 MB, free: 7.328 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002931/0.2935, allocations: 97.8 kB / 433.5 MB, free: 7.227 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004885/0.294, allocations: 147.8 kB / 433.6 MB, free: 7.082 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00238/0.2964, allocations: 3.138 MB / 436.8 MB, free: 3.664 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004928/0.2969, allocations: 40 kB / 436.8 MB, free: 3.625 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.545e-05/0.2969, allocations: 32 kB / 436.9 MB, free: 3.594 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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): 82 * Array equations: 0 * Algorithm blocks: 0 * 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,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003575/0.2973, allocations: 270 kB / 437.1 MB, free: 3.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001143/0.2974, allocations: 87.44 kB / 437.2 MB, free: 3.234 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008905/0.2983, allocations: 491.2 kB / 437.7 MB, free: 2.738 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.341e-06/0.2983, allocations: 8 kB / 437.7 MB, free: 2.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.2983, allocations: 0 / 437.7 MB, free: 2.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.143e-06/0.2984, allocations: 3.984 kB / 437.7 MB, free: 2.727 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002057/0.3004, allocations: 1.436 MB / 439.1 MB, free: 1.203 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/0.3004, allocations: 4 kB / 439.1 MB, free: 1.199 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002854/0.3007, allocations: 71.89 kB / 439.2 MB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001884/0.3009, allocations: 65.91 kB / 439.3 MB, free: 1.059 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.65e-05/0.301, allocations: 15.98 kB / 439.3 MB, free: 1.043 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00223/0.3032, allocations: 3.131 MB / 442.4 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.3032, allocations: 4.031 kB / 442.4 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001195/0.3044, allocations: 0.7706 MB / 443.2 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002353/0.3047, allocations: 204.5 kB / 443.4 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001055/0.3048, allocations: 15.94 kB / 443.4 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003896/0.3052, allocations: 23.98 kB / 443.4 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.021e-05/0.3053, allocations: 43.89 kB / 443.5 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.246e-05/0.3053, allocations: 11.94 kB / 443.5 MB, free: 12.51 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006881/0.306, allocations: 0.5654 MB / 444 MB, free: 11.95 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.306, allocations: 0 / 444 MB, free: 11.95 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007281/0.3067, allocations: 203.9 kB / 444.2 MB, free: 11.75 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * 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,5,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.0001947/0.3069, allocations: 127.2 kB / 444.4 MB, free: 11.61 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001067/0.308, allocations: 0.6813 MB / 445.1 MB, free: 10.91 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.308, allocations: 3.938 kB / 445.1 MB, free: 10.9 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005873/0.3086, allocations: 450.8 kB / 445.5 MB, free: 10.44 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009598/0.3096, allocations: 219.3 kB / 445.7 MB, free: 10.22 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002523/0.3121, allocations: 1.745 MB / 447.5 MB, free: 8.426 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005911/0.3127, allocations: 1.005 MB / 448.5 MB, free: 7.395 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003302/0.3131, allocations: 107.2 kB / 448.6 MB, free: 7.285 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001187/0.3132, allocations: 51.44 kB / 448.6 MB, free: 7.234 MB / 366.1 MB Notification: Performance of SimCode: time 2.71e-07/0.3132, allocations: 0 / 448.6 MB, free: 7.234 MB / 366.1 MB Notification: Performance of Templates: time 0.01828/0.3315, allocations: 10.67 MB / 459.3 MB, free: 12.7 MB / 382.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches