Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_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.DCSE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001398/0.001398, allocations: 117.7 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001396/0.001396, allocations: 208.8 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.343/1.343, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001353/0.001353, allocations: 63.89 kB / 359.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2351/0.2364, allocations: 50.54 MB / 409.9 MB, free: 1.727 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.008677/0.2451, allocations: 8.098 MB / 418 MB, free: 9.586 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004283/0.2495, allocations: 2.665 MB / 420.7 MB, free: 6.914 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008241/0.2503, allocations: 23.94 kB / 420.7 MB, free: 6.891 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001397/0.2518, allocations: 0.5481 MB / 421.3 MB, free: 6.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001113/0.2529, allocations: 472.3 kB / 421.7 MB, free: 5.875 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004672/0.2534, allocations: 247.7 kB / 422 MB, free: 5.633 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001404/0.2548, allocations: 1.478 MB / 423.5 MB, free: 4.148 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007632/0.2556, allocations: 0.5807 MB / 424 MB, free: 3.543 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007503/0.2563, allocations: 0.5603 MB / 424.6 MB, free: 2.98 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006424/0.257, allocations: 0.6066 MB / 425.2 MB, free: 2.371 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001596/0.2571, allocations: 140 kB / 425.3 MB, free: 2.234 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000313/0.2575, allocations: 176 kB / 425.5 MB, free: 2.062 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000182/0.2576, allocations: 279 kB / 425.8 MB, free: 1.789 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005255/0.2582, allocations: 0.6532 MB / 426.4 MB, free: 1.133 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001606/0.2598, allocations: 1.734 MB / 428.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.2598, allocations: 0 / 428.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.2598, allocations: 0 / 428.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.616e-05/0.2598, allocations: 4 kB / 428.2 MB, free: 15.39 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.002262/0.2621, allocations: 1.445 MB / 429.6 MB, free: 13.89 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.646e-05/0.2622, allocations: 12.03 kB / 429.6 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006493/0.2628, allocations: 183.3 kB / 429.8 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001116/0.2639, allocations: 0.7456 MB / 430.6 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.713e-05/0.264, allocations: 70 kB / 430.6 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001246/0.2641, allocations: 99.91 kB / 430.7 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001524/0.2657, allocations: 0.9424 MB / 431.7 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.918e-05/0.2657, allocations: 4 kB / 431.7 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.509e-05/0.2658, allocations: 40 kB / 431.7 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.02e-05/0.2658, allocations: 24 kB / 431.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00119/0.267, allocations: 0.6402 MB / 432.4 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004787/0.2718, allocations: 3.879 MB / 436.2 MB, free: 6.961 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006704/0.2725, allocations: 446.9 kB / 436.7 MB, free: 6.504 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005913/0.2731, allocations: 277.2 kB / 437 MB, free: 6.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.929e-05/0.2732, allocations: 4.328 kB / 437 MB, free: 6.227 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.659e-05/0.2732, allocations: 38.89 kB / 437 MB, free: 6.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 2.174e-06/0.2732, allocations: 0 / 437 MB, free: 6.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.002587/0.2758, allocations: 1.401 MB / 438.4 MB, free: 4.703 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.11e-05/0.2759, allocations: 81.11 kB / 438.5 MB, free: 4.605 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001026/0.2769, allocations: 0.8291 MB / 439.3 MB, free: 3.766 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.126e-05/0.2769, allocations: 33.7 kB / 439.3 MB, free: 3.727 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003733/0.2773, allocations: 0.5526 MB / 439.9 MB, free: 3.164 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001157/0.2774, allocations: 161.7 kB / 440 MB, free: 3.004 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001641/0.2776, allocations: 130.6 kB / 440.2 MB, free: 2.871 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.2778, allocations: 330 kB / 440.5 MB, free: 2.543 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003216/0.2781, allocations: 165.9 kB / 440.7 MB, free: 2.383 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005049/0.2786, allocations: 464 kB / 441.1 MB, free: 1.793 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008634/0.2795, allocations: 0.6583 MB / 441.8 MB, free: 1 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.099e-06/0.2795, allocations: 4 kB / 441.8 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001285/0.2808, allocations: 0.7784 MB / 442.6 MB, free: 212 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.017e-05/0.2808, allocations: 8 kB / 442.6 MB, free: 204 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.232e-05/0.2808, allocations: 8 kB / 442.6 MB, free: 196 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002529/0.2811, allocations: 89.61 kB / 442.7 MB, free: 100 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004916/0.2816, allocations: 155.7 kB / 442.8 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002331/0.2839, allocations: 3.138 MB / 445.9 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005394/0.2845, allocations: 31.98 kB / 446 MB, free: 12.49 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.915e-05/0.2845, allocations: 32 kB / 446 MB, free: 12.46 MB / 366.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.0003791/0.2849, allocations: 270.8 kB / 446.3 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001231/0.2851, allocations: 86.88 kB / 446.4 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008928/0.286, allocations: 487.5 kB / 446.8 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.463e-06/0.286, allocations: 8.094 kB / 446.8 MB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.286, allocations: 7.984 kB / 446.9 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.286, allocations: 3.984 kB / 446.9 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00199/0.288, allocations: 1.431 MB / 448.3 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/0.288, allocations: 4 kB / 448.3 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000298/0.2883, allocations: 67.91 kB / 448.4 MB, free: 10 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001994/0.2885, allocations: 73.89 kB / 448.4 MB, free: 9.926 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.436e-05/0.2886, allocations: 8 kB / 448.4 MB, free: 9.918 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002188/0.2908, allocations: 3.127 MB / 451.6 MB, free: 6.52 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.628e-06/0.2908, allocations: 8.016 kB / 451.6 MB, free: 6.512 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001192/0.292, allocations: 0.7738 MB / 452.3 MB, free: 5.691 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002472/0.2922, allocations: 192.1 kB / 452.5 MB, free: 5.484 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001094/0.2924, allocations: 15.94 kB / 452.5 MB, free: 5.469 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004325/0.2928, allocations: 35.91 kB / 452.6 MB, free: 5.434 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.766e-05/0.2929, allocations: 31.95 kB / 452.6 MB, free: 5.402 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.185e-05/0.2929, allocations: 12 kB / 452.6 MB, free: 5.391 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000706/0.2936, allocations: 0.5654 MB / 453.2 MB, free: 4.828 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2936, allocations: 0 / 453.2 MB, free: 4.828 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007932/0.2944, allocations: 203.9 kB / 453.4 MB, free: 4.629 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.0002005/0.2946, allocations: 123.5 kB / 453.5 MB, free: 4.5 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001099/0.2957, allocations: 0.6829 MB / 454.2 MB, free: 3.793 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.588e-06/0.2958, allocations: 4.547 kB / 454.2 MB, free: 3.789 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006221/0.2964, allocations: 449.2 kB / 454.6 MB, free: 3.324 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001055/0.2975, allocations: 223 kB / 454.9 MB, free: 3.109 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00268/0.3002, allocations: 1.739 MB / 456.6 MB, free: 1.312 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005607/0.3007, allocations: 1.001 MB / 457.6 MB, free: 292 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001529/0.3009, allocations: 63.42 kB / 457.7 MB, free: 228 kB / 366.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3009, allocations: 0 / 457.7 MB, free: 228 kB / 366.1 MB Notification: Performance of Templates: time 0.02258/0.3235, allocations: 20.98 MB / 478.6 MB, free: 11.28 MB / 398.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches