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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.00179/0.00179, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.297/1.297, allocations: 226.7 MB / 245.5 MB, free: 6.984 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001006/0.001006, allocations: 112.5 kB / 296.7 MB, free: 6.461 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009208/0.0009208, allocations: 55.91 kB / 356.6 MB, free: 10.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.214/0.215, allocations: 50.44 MB / 407.1 MB, free: 27.81 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.006277/0.2213, allocations: 8.066 MB / 415.1 MB, free: 19.71 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003117/0.2244, allocations: 2.652 MB / 417.8 MB, free: 17.06 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004797/0.2249, allocations: 23.94 kB / 417.8 MB, free: 17.04 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001033/0.226, allocations: 498.1 kB / 418.3 MB, free: 16.55 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006393/0.2266, allocations: 405.1 kB / 418.7 MB, free: 16.15 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000311/0.227, allocations: 217 kB / 418.9 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008137/0.2278, allocations: 1.419 MB / 420.3 MB, free: 14.52 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004833/0.2283, allocations: 0.5006 MB / 420.8 MB, free: 14 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003915/0.2287, allocations: 0.4978 MB / 421.3 MB, free: 13.5 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003899/0.2291, allocations: 0.5715 MB / 421.9 MB, free: 12.92 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001009/0.2292, allocations: 84 kB / 422 MB, free: 12.84 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002587/0.2294, allocations: 116 kB / 422.1 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001185/0.2296, allocations: 231 kB / 422.3 MB, free: 12.5 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003642/0.2299, allocations: 0.6101 MB / 422.9 MB, free: 11.89 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008929/0.2308, allocations: 1.654 MB / 424.6 MB, free: 10.23 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.2309, allocations: 0 / 424.6 MB, free: 10.23 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.2309, allocations: 4 kB / 424.6 MB, free: 10.22 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.146e-05/0.2309, allocations: 0 / 424.6 MB, free: 10.22 MB / 298.7 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.00185/0.2327, allocations: 1.456 MB / 426 MB, free: 8.711 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.433e-05/0.2328, allocations: 8.031 kB / 426 MB, free: 8.703 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005506/0.2333, allocations: 191.4 kB / 426.2 MB, free: 8.516 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008098/0.2342, allocations: 0.7338 MB / 426.9 MB, free: 7.742 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.619e-05/0.2342, allocations: 74 kB / 427 MB, free: 7.668 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.419e-05/0.2343, allocations: 96 kB / 427.1 MB, free: 7.574 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001112/0.2354, allocations: 0.9385 MB / 428.1 MB, free: 6.609 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.693e-05/0.2355, allocations: 3.906 kB / 428.1 MB, free: 6.605 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.164e-05/0.2355, allocations: 44 kB / 428.1 MB, free: 6.562 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.43e-05/0.2356, allocations: 24 kB / 428.1 MB, free: 6.539 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009512/0.2365, allocations: 0.6286 MB / 428.8 MB, free: 5.91 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003506/0.24, allocations: 3.93 MB / 432.7 MB, free: 1.758 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005071/0.2405, allocations: 450.2 kB / 433.1 MB, free: 1.297 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000447/0.241, allocations: 258.9 kB / 433.4 MB, free: 1.043 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.099e-05/0.241, allocations: 8.312 kB / 433.4 MB, free: 1.035 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.558e-05/0.2411, allocations: 34.89 kB / 433.4 MB, free: 0.9922 MB / 298.7 MB Notification: Performance of pre-optimization done (n=40): time 1.633e-06/0.2411, allocations: 0 / 433.4 MB, free: 0.9922 MB / 298.7 MB Notification: Performance of matching and sorting (n=44): time 0.00212/0.2432, allocations: 1.396 MB / 434.8 MB, free: 15.52 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.088e-05/0.2433, allocations: 85.11 kB / 434.9 MB, free: 15.41 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009497/0.2442, allocations: 0.8176 MB / 435.7 MB, free: 14.59 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.687e-05/0.2443, allocations: 33.7 kB / 435.7 MB, free: 14.55 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003533/0.2446, allocations: 0.5602 MB / 436.3 MB, free: 13.98 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001005/0.2447, allocations: 157.8 kB / 436.5 MB, free: 13.82 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001589/0.2449, allocations: 130.5 kB / 436.6 MB, free: 13.69 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001094/0.245, allocations: 334 kB / 436.9 MB, free: 13.36 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003216/0.2453, allocations: 165.9 kB / 437.1 MB, free: 13.2 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004706/0.2458, allocations: 463.9 kB / 437.5 MB, free: 12.61 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008094/0.2466, allocations: 0.6585 MB / 438.2 MB, free: 11.81 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.2466, allocations: 0 / 438.2 MB, free: 11.81 MB / 314.7 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001173/0.2478, allocations: 0.7668 MB / 439 MB, free: 11.04 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/0.2478, allocations: 8 kB / 439 MB, free: 11.03 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.195e-05/0.2479, allocations: 12 kB / 439 MB, free: 11.02 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002455/0.2481, allocations: 85.61 kB / 439.1 MB, free: 10.93 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004495/0.2486, allocations: 151.9 kB / 439.2 MB, free: 10.78 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002129/0.2507, allocations: 2.872 MB / 442.1 MB, free: 7.633 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004762/0.2512, allocations: 43.95 kB / 442.1 MB, free: 7.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.99e-05/0.2513, allocations: 28 kB / 442.1 MB, free: 7.562 MB / 314.7 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.0003148/0.2516, allocations: 262.8 kB / 442.4 MB, free: 7.297 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001058/0.2517, allocations: 86.97 kB / 442.5 MB, free: 7.211 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008758/0.2526, allocations: 499.4 kB / 443 MB, free: 6.707 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.2526, allocations: 8.078 kB / 443 MB, free: 6.699 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.2526, allocations: 3.984 kB / 443 MB, free: 6.695 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.2526, allocations: 3.938 kB / 443 MB, free: 6.691 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001912/0.2545, allocations: 1.431 MB / 444.4 MB, free: 5.176 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.2545, allocations: 0 / 444.4 MB, free: 5.176 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002965/0.2548, allocations: 72.03 kB / 444.5 MB, free: 5.105 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001876/0.255, allocations: 81.83 kB / 444.6 MB, free: 5.02 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.429e-05/0.2551, allocations: 12 kB / 444.6 MB, free: 5.008 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001993/0.2571, allocations: 2.852 MB / 447.4 MB, free: 1.891 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.2571, allocations: 8.016 kB / 447.4 MB, free: 1.883 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007596/0.2647, allocations: 6.575 MB / 454 MB, free: 10.84 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000226/0.2649, allocations: 200 kB / 454.2 MB, free: 10.62 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.297e-05/0.265, allocations: 12 kB / 454.2 MB, free: 10.61 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004024/0.2654, allocations: 27.92 kB / 454.3 MB, free: 10.59 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.634e-05/0.2655, allocations: 35.89 kB / 454.3 MB, free: 10.55 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.427e-05/0.2656, allocations: 19.94 kB / 454.3 MB, free: 10.53 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006944/0.2663, allocations: 0.5654 MB / 454.9 MB, free: 9.973 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2663, allocations: 0 / 454.9 MB, free: 9.973 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009831/0.2673, allocations: 292 kB / 455.2 MB, free: 9.688 MB / 330.7 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.000202/0.2675, allocations: 123.1 kB / 455.3 MB, free: 9.559 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001076/0.2686, allocations: 0.6899 MB / 456 MB, free: 8.844 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.2686, allocations: 0 / 456 MB, free: 8.844 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005967/0.2692, allocations: 434 kB / 456.4 MB, free: 8.395 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001072/0.2703, allocations: 204.3 kB / 456.6 MB, free: 8.195 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003113/0.2734, allocations: 2.687 MB / 459.3 MB, free: 5.418 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005236/0.2739, allocations: 1.017 MB / 460.3 MB, free: 4.375 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0004074/0.2743, allocations: 107.2 kB / 460.4 MB, free: 4.266 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001321/0.2745, allocations: 59.42 kB / 460.5 MB, free: 4.207 MB / 330.7 MB Notification: Performance of SimCode: time 3.91e-07/0.2745, allocations: 0 / 460.5 MB, free: 4.207 MB / 330.7 MB Notification: Performance of Templates: time 0.01814/0.2926, allocations: 11.25 MB / 471.7 MB, free: 9.055 MB / 346.7 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/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches