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.0009804/0.0009805, allocations: 112.6 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000991/0.0009911, allocations: 207.9 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.223/1.223, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001104/0.001104, allocations: 59.89 kB / 359.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1976/0.1987, allocations: 50.53 MB / 409.9 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start): time 0.007207/0.206, allocations: 8 MB / 417.9 MB, free: 9.562 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00284/0.2088, allocations: 2.63 MB / 420.6 MB, free: 6.926 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003282/0.2092, allocations: 23.94 kB / 420.6 MB, free: 6.902 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009789/0.2102, allocations: 0.5481 MB / 421.1 MB, free: 6.352 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006246/0.2108, allocations: 456.4 kB / 421.6 MB, free: 5.902 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000336/0.2112, allocations: 235.8 kB / 421.8 MB, free: 5.672 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001028/0.2122, allocations: 1.432 MB / 423.2 MB, free: 4.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006194/0.2128, allocations: 0.5807 MB / 423.8 MB, free: 3.625 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005095/0.2133, allocations: 0.5525 MB / 424.4 MB, free: 3.07 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004948/0.2138, allocations: 0.5755 MB / 425 MB, free: 2.492 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001255/0.214, allocations: 136 kB / 425.1 MB, free: 2.359 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002373/0.2142, allocations: 176 kB / 425.3 MB, free: 2.188 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001568/0.2144, allocations: 286.9 kB / 425.5 MB, free: 1.906 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004315/0.2148, allocations: 0.6376 MB / 426.2 MB, free: 1.266 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001211/0.216, allocations: 1.703 MB / 427.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.216, allocations: 0 / 427.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2161, allocations: 0 / 427.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.473e-05/0.2161, allocations: 0 / 427.9 MB, free: 15.55 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.001842/0.2179, allocations: 1.433 MB / 429.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.889e-05/0.218, allocations: 12.03 kB / 429.3 MB, free: 14.06 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004561/0.2184, allocations: 171.4 kB / 429.5 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009246/0.2194, allocations: 0.7223 MB / 430.2 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.338e-05/0.2194, allocations: 70 kB / 430.3 MB, free: 13.06 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001078/0.2195, allocations: 99.91 kB / 430.4 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001282/0.2208, allocations: 0.9229 MB / 431.3 MB, free: 12.01 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.773e-05/0.2208, allocations: 4 kB / 431.3 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.324e-05/0.2209, allocations: 40 kB / 431.3 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.9e-05/0.2209, allocations: 27.94 kB / 431.4 MB, free: 11.94 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001025/0.222, allocations: 0.6207 MB / 432 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003751/0.2257, allocations: 3.877 MB / 435.9 MB, free: 7.203 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004785/0.2262, allocations: 351.7 kB / 436.2 MB, free: 6.832 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002449/0.2265, allocations: 151.5 kB / 436.4 MB, free: 6.684 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.361e-05/0.2265, allocations: 4 kB / 436.4 MB, free: 6.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.001e-05/0.2265, allocations: 42.5 kB / 436.4 MB, free: 6.629 MB / 350.1 MB Notification: Performance of pre-optimization done (n=32): time 1.262e-06/0.2265, allocations: 0 / 436.4 MB, free: 6.629 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.001802/0.2283, allocations: 1.187 MB / 437.6 MB, free: 5.367 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.484e-05/0.2284, allocations: 81.11 kB / 437.7 MB, free: 5.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008412/0.2292, allocations: 0.8252 MB / 438.5 MB, free: 4.434 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.092e-05/0.2293, allocations: 33.7 kB / 438.5 MB, free: 4.395 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003018/0.2296, allocations: 0.5718 MB / 439.1 MB, free: 3.812 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.302e-05/0.2297, allocations: 134.1 kB / 439.2 MB, free: 3.68 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001335/0.2298, allocations: 126.5 kB / 439.4 MB, free: 3.551 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.665e-05/0.2299, allocations: 326 kB / 439.7 MB, free: 3.227 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002692/0.2302, allocations: 149.9 kB / 439.8 MB, free: 3.082 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004154/0.2306, allocations: 468 kB / 440.3 MB, free: 2.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007221/0.2313, allocations: 0.6396 MB / 440.9 MB, free: 1.699 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.2313, allocations: 0 / 440.9 MB, free: 1.699 MB / 350.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.0009671/0.2323, allocations: 0.6848 MB / 441.6 MB, free: 1.004 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.84e-05/0.2323, allocations: 8 kB / 441.6 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.117e-05/0.2324, allocations: 12 kB / 441.6 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001206/0.2325, allocations: 32.78 kB / 441.7 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004218/0.2329, allocations: 159.7 kB / 441.8 MB, free: 0.793 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008178/0.2337, allocations: 1.39 MB / 443.2 MB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003893/0.2341, allocations: 40.05 kB / 443.2 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.576e-05/0.2342, allocations: 35.98 kB / 443.3 MB, free: 15.18 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.0002507/0.2344, allocations: 253.5 kB / 443.5 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.534e-05/0.2345, allocations: 86.91 kB / 443.6 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006154/0.2352, allocations: 374.2 kB / 444 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.2352, allocations: 7.984 kB / 444 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.2352, allocations: 0 / 444 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.179e-06/0.2352, allocations: 11.86 kB / 444 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001474/0.2367, allocations: 1.262 MB / 445.3 MB, free: 13.1 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.2367, allocations: 0 / 445.3 MB, free: 13.1 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002824/0.237, allocations: 75.84 kB / 445.3 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.938e-05/0.2371, allocations: 33 kB / 445.4 MB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.978e-05/0.2371, allocations: 12 kB / 445.4 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007306/0.2378, allocations: 1.371 MB / 446.7 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.2378, allocations: 3.938 kB / 446.7 MB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008205/0.2387, allocations: 0.6208 MB / 447.4 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001907/0.2389, allocations: 184.2 kB / 447.5 MB, free: 10.6 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.271e-05/0.2389, allocations: 16 kB / 447.6 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003264/0.2393, allocations: 27.91 kB / 447.6 MB, free: 10.56 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.497e-05/0.2393, allocations: 23.97 kB / 447.6 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.818e-05/0.2394, allocations: 16 kB / 447.6 MB, free: 10.52 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005891/0.2399, allocations: 0.5576 MB / 448.2 MB, free: 9.965 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.24, allocations: 0 / 448.2 MB, free: 9.965 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005457/0.2405, allocations: 192 kB / 448.4 MB, free: 9.777 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.0001564/0.2407, allocations: 134.6 kB / 448.5 MB, free: 9.637 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007673/0.2414, allocations: 0.5199 MB / 449 MB, free: 9.105 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.2415, allocations: 320 / 449 MB, free: 9.105 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003423/0.2418, allocations: 266.5 kB / 449.3 MB, free: 8.832 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008402/0.2427, allocations: 218.4 kB / 449.5 MB, free: 8.629 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002071/0.2447, allocations: 1.716 MB / 451.2 MB, free: 6.855 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004345/0.2452, allocations: 0.9961 MB / 452.2 MB, free: 5.832 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001186/0.2453, allocations: 59.44 kB / 452.3 MB, free: 5.773 MB / 366.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2453, allocations: 0 / 452.3 MB, free: 5.773 MB / 366.1 MB Notification: Performance of Templates: time 0.01484/0.2602, allocations: 15.98 MB / 468.2 MB, free: 5.832 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCEE_Start/DCEE_Start.csv","/var/lib/jenkins1/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