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.001037/0.001037, allocations: 201.2 kB / 18.11 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 226.5 MB / 245.4 MB, free: 6.516 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007583/0.0007583, allocations: 105 kB / 297.5 MB, free: 6.699 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003448/0.0003449, allocations: 4 kB / 358.1 MB, free: 10.08 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2678/0.2682, allocations: 51.29 MB / 409.4 MB, free: 27.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1148/0.3831, allocations: 99.47 MB / 0.4969 GB, free: 8.02 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002478/0.3833, allocations: 87.94 kB / 0.497 GB, free: 7.934 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2331/0.6164, allocations: 28.13 MB / 0.5245 GB, free: 88.59 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.6165, allocations: 0 / 0.5245 GB, free: 88.59 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.712e-05/0.6165, allocations: 20 kB / 0.5245 GB, free: 88.57 MB / 378.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.002092/0.6186, allocations: 1.251 MB / 0.5257 GB, free: 87.27 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.6187, allocations: 8.031 kB / 0.5257 GB, free: 87.27 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006568/0.6194, allocations: 191.4 kB / 0.5259 GB, free: 87.08 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001282/0.6207, allocations: 0.8213 MB / 0.5267 GB, free: 86.23 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.776e-05/0.6207, allocations: 74 kB / 0.5268 GB, free: 86.16 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001151/0.6208, allocations: 99.91 kB / 0.5269 GB, free: 86.06 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001287/0.6221, allocations: 0.9308 MB / 0.5278 GB, free: 85.11 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.714e-05/0.6222, allocations: 11.92 kB / 0.5278 GB, free: 85.09 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.925e-05/0.6223, allocations: 43.94 kB / 0.5278 GB, free: 85.05 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.646e-05/0.6223, allocations: 24 kB / 0.5279 GB, free: 85.03 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00101/0.6233, allocations: 0.6364 MB / 0.5285 GB, free: 84.39 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003759/0.6271, allocations: 3.91 MB / 0.5323 GB, free: 80.29 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005432/0.6276, allocations: 471.4 kB / 0.5328 GB, free: 79.8 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004429/0.6281, allocations: 264.6 kB / 0.533 GB, free: 79.55 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.256e-05/0.6281, allocations: 4 kB / 0.533 GB, free: 79.54 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.793e-05/0.6281, allocations: 38.56 kB / 0.533 GB, free: 79.5 MB / 378.7 MB Notification: Performance of pre-optimization done (n=42): time 2.274e-06/0.6282, allocations: 7.938 kB / 0.5331 GB, free: 79.49 MB / 378.7 MB Notification: Performance of matching and sorting (n=47): time 0.00236/0.6305, allocations: 1.578 MB / 0.5346 GB, free: 77.81 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.743e-05/0.6306, allocations: 85.55 kB / 0.5347 GB, free: 77.71 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007461/0.6313, allocations: 0.79 MB / 0.5354 GB, free: 76.91 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.48e-05/0.6314, allocations: 41.7 kB / 0.5355 GB, free: 76.87 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002158/0.6316, allocations: 0.5447 MB / 0.536 GB, free: 76.32 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.198e-05/0.6317, allocations: 169.6 kB / 0.5362 GB, free: 76.15 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.087e-05/0.6317, allocations: 12 kB / 0.5362 GB, free: 76.14 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.844e-05/0.6317, allocations: 337.9 kB / 0.5365 GB, free: 75.8 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002791/0.632, allocations: 173.9 kB / 0.5367 GB, free: 75.64 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000362/0.6324, allocations: 480 kB / 0.5371 GB, free: 75.04 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006964/0.6331, allocations: 0.6868 MB / 0.5378 GB, free: 74.21 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.6331, allocations: 4 kB / 0.5378 GB, free: 74.21 MB / 378.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.00106/0.6342, allocations: 0.8013 MB / 0.5386 GB, free: 73.39 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.836e-05/0.6342, allocations: 8 kB / 0.5386 GB, free: 73.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/0.6342, allocations: 12.28 kB / 0.5386 GB, free: 73.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002359/0.6345, allocations: 93.67 kB / 0.5387 GB, free: 73.28 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004349/0.6349, allocations: 155.7 kB / 0.5389 GB, free: 73.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001659/0.6366, allocations: 2.993 MB / 0.5418 GB, free: 69.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004853/0.6371, allocations: 43.95 kB / 0.5418 GB, free: 69.83 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.707e-05/0.6371, allocations: 36 kB / 0.5419 GB, free: 69.8 MB / 378.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 (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003247/0.6375, allocations: 265.4 kB / 0.5421 GB, free: 69.53 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.802e-05/0.6376, allocations: 90.97 kB / 0.5422 GB, free: 69.44 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007918/0.6384, allocations: 0.5221 MB / 0.5427 GB, free: 68.9 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.6384, allocations: 4 kB / 0.5427 GB, free: 68.89 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.6384, allocations: 4 kB / 0.5427 GB, free: 68.89 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.6384, allocations: 3.984 kB / 0.5427 GB, free: 68.89 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001634/0.64, allocations: 1.462 MB / 0.5441 GB, free: 67.35 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.64, allocations: 4 kB / 0.5441 GB, free: 67.35 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002808/0.6403, allocations: 83.89 kB / 0.5442 GB, free: 67.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001875/0.6405, allocations: 85.89 kB / 0.5443 GB, free: 67.18 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.274e-05/0.6406, allocations: 12 kB / 0.5443 GB, free: 67.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001549/0.6421, allocations: 2.986 MB / 0.5472 GB, free: 63.91 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.6421, allocations: 0 / 0.5472 GB, free: 63.91 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009912/0.6431, allocations: 0.832 MB / 0.548 GB, free: 63.04 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001953/0.6433, allocations: 196.1 kB / 0.5482 GB, free: 62.82 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.283e-05/0.6434, allocations: 12 kB / 0.5482 GB, free: 62.81 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003687/0.6438, allocations: 31.97 kB / 0.5483 GB, free: 62.78 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.549e-05/0.6439, allocations: 43.83 kB / 0.5483 GB, free: 62.74 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.021e-05/0.6439, allocations: 12 kB / 0.5483 GB, free: 62.73 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005265/0.6444, allocations: 0.5303 MB / 0.5488 GB, free: 62.2 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.6444, allocations: 4 kB / 0.5488 GB, free: 62.2 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007931/0.6452, allocations: 247.9 kB / 0.5491 GB, free: 61.96 MB / 378.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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003216/0.6456, allocations: 296.5 kB / 0.5494 GB, free: 61.69 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009006/0.6465, allocations: 0.7224 MB / 0.5501 GB, free: 60.94 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.6465, allocations: 0 / 0.5501 GB, free: 60.94 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004947/0.647, allocations: 474.8 kB / 0.5505 GB, free: 60.45 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001111/0.6481, allocations: 204.4 kB / 0.5507 GB, free: 60.25 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002248/0.6504, allocations: 2.123 MB / 0.5528 GB, free: 58.08 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003555/0.6507, allocations: 1.013 MB / 0.5538 GB, free: 57.04 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004009/0.6512, allocations: 103.3 kB / 0.5539 GB, free: 56.93 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001011/0.6513, allocations: 59.44 kB / 0.5539 GB, free: 56.88 MB / 378.7 MB Notification: Performance of SimCode: time 4.41e-07/0.6513, allocations: 4 kB / 0.5539 GB, free: 56.87 MB / 378.7 MB Notification: Performance of Templates: time 0.0169/0.6682, allocations: 12.11 MB / 0.5658 GB, free: 44.88 MB / 378.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/jenkins1/ws/OpenModelicaLibraryTestingWork/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