Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,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_SinglePhase") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,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_SinglePhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001617/0.001617, allocations: 181.9 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.258/1.258, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009261/0.0009263, allocations: 104 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000277/0.0002771, allocations: 4 kB / 351.1 MB, free: 15.31 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2626/0.2629, allocations: 50.42 MB / 401.5 MB, free: 32.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1289/0.3918, allocations: 99.56 MB / 0.4893 GB, free: 12.89 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003885/0.3923, allocations: 83.95 kB / 0.4894 GB, free: 12.8 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2939/0.6862, allocations: 28.74 MB / 0.5175 GB, free: 93.49 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.6863, allocations: 0 / 0.5175 GB, free: 93.49 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001031/0.6864, allocations: 19.69 kB / 0.5175 GB, free: 93.49 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.003052/0.6894, allocations: 1.29 MB / 0.5187 GB, free: 92.65 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.953e-05/0.6895, allocations: 9.156 kB / 0.5188 GB, free: 92.65 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009562/0.6905, allocations: 194 kB / 0.5189 GB, free: 92.58 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001848/0.6923, allocations: 0.8141 MB / 0.5197 GB, free: 92.06 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.046e-05/0.6924, allocations: 73.06 kB / 0.5198 GB, free: 92.02 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002249/0.6926, allocations: 101.6 kB / 0.5199 GB, free: 91.99 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001888/0.6945, allocations: 0.9383 MB / 0.5208 GB, free: 91.54 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.252e-05/0.6946, allocations: 3.984 kB / 0.5208 GB, free: 91.53 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.032e-05/0.6947, allocations: 39.88 kB / 0.5209 GB, free: 91.5 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.198e-05/0.6947, allocations: 27.22 kB / 0.5209 GB, free: 91.5 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001325/0.6961, allocations: 0.6617 MB / 0.5215 GB, free: 91.18 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004719/0.7008, allocations: 3.958 MB / 0.5254 GB, free: 87.25 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005969/0.7014, allocations: 464.5 kB / 0.5258 GB, free: 86.77 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.415e-05/0.7015, allocations: 4 kB / 0.5258 GB, free: 86.76 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.667e-05/0.7015, allocations: 42.5 kB / 0.5259 GB, free: 86.71 MB / 378.7 MB Notification: Performance of pre-optimization done (n=43): time 3.747e-06/0.7015, allocations: 0 / 0.5259 GB, free: 86.71 MB / 378.7 MB Notification: Performance of matching and sorting (n=48): time 0.002653/0.7042, allocations: 1.507 MB / 0.5274 GB, free: 85.13 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.426e-05/0.7042, allocations: 89.5 kB / 0.5274 GB, free: 85.02 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008593/0.7051, allocations: 0.7074 MB / 0.5281 GB, free: 84.31 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.875e-05/0.7051, allocations: 33.7 kB / 0.5282 GB, free: 84.27 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002548/0.7054, allocations: 0.5651 MB / 0.5287 GB, free: 83.7 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.413e-05/0.7055, allocations: 176.4 kB / 0.5289 GB, free: 83.53 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.316e-05/0.7055, allocations: 16 kB / 0.5289 GB, free: 83.52 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.019e-05/0.7056, allocations: 330 kB / 0.5292 GB, free: 83.19 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003484/0.706, allocations: 189.8 kB / 0.5294 GB, free: 83 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003928/0.7064, allocations: 468.1 kB / 0.5298 GB, free: 82.41 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000417/0.7068, allocations: 268.7 kB / 0.5301 GB, free: 82.16 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.47e-06/0.7068, allocations: 0 / 0.5301 GB, free: 82.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001251/0.7081, allocations: 0.8016 MB / 0.5309 GB, free: 81.34 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.484e-05/0.7081, allocations: 18.69 kB / 0.5309 GB, free: 81.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.499e-05/0.7081, allocations: 8 kB / 0.5309 GB, free: 81.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002594/0.7084, allocations: 85.67 kB / 0.531 GB, free: 81.23 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000498/0.7089, allocations: 163.7 kB / 0.5311 GB, free: 81.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001851/0.7107, allocations: 2.923 MB / 0.534 GB, free: 77.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007218/0.7115, allocations: 44.2 kB / 0.534 GB, free: 77.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.154e-05/0.7115, allocations: 36 kB / 0.5341 GB, free: 77.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 (87): * Single equations (assignments): 85 * 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%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005105/0.7121, allocations: 265.5 kB / 0.5343 GB, free: 77.54 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001447/0.7122, allocations: 90.97 kB / 0.5344 GB, free: 77.45 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009633/0.7132, allocations: 0.5261 MB / 0.5349 GB, free: 76.9 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/0.7132, allocations: 8 kB / 0.5349 GB, free: 76.89 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.7132, allocations: 0 / 0.5349 GB, free: 76.89 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.7132, allocations: 48 / 0.5349 GB, free: 76.89 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002186/0.7154, allocations: 1.472 MB / 0.5364 GB, free: 75.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.54e-06/0.7154, allocations: 4 kB / 0.5364 GB, free: 75.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003228/0.7158, allocations: 79.89 kB / 0.5365 GB, free: 75.26 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002077/0.716, allocations: 77.77 kB / 0.5365 GB, free: 75.18 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.252e-05/0.716, allocations: 20.12 kB / 0.5366 GB, free: 75.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00165/0.7177, allocations: 2.916 MB / 0.5394 GB, free: 71.98 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.7177, allocations: 4.188 kB / 0.5394 GB, free: 71.98 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001182/0.7189, allocations: 0.9224 MB / 0.5403 GB, free: 70.97 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004452/0.7193, allocations: 196.1 kB / 0.5405 GB, free: 70.76 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001908/0.7195, allocations: 16 kB / 0.5405 GB, free: 70.74 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004989/0.7201, allocations: 35.97 kB / 0.5405 GB, free: 70.71 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001046/0.7202, allocations: 43.84 kB / 0.5406 GB, free: 70.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.753e-05/0.7202, allocations: 16 kB / 0.5406 GB, free: 70.65 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007905/0.721, allocations: 0.5381 MB / 0.5411 GB, free: 70.12 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.721, allocations: 4 kB / 0.5411 GB, free: 70.11 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001293/0.7223, allocations: 247.9 kB / 0.5414 GB, free: 69.87 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 (41): * Single equations (assignments): 39 * 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%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004971/0.7228, allocations: 295.4 kB / 0.5416 GB, free: 69.6 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001147/0.724, allocations: 0.731 MB / 0.5424 GB, free: 68.84 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.501e-06/0.724, allocations: 128 / 0.5424 GB, free: 68.84 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006131/0.7246, allocations: 469 kB / 0.5428 GB, free: 68.36 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001036/0.7257, allocations: 218.5 kB / 0.543 GB, free: 68.15 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002999/0.7287, allocations: 2.151 MB / 0.5451 GB, free: 65.95 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005023/0.7292, allocations: 1.036 MB / 0.5461 GB, free: 64.89 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005021/0.7297, allocations: 111.4 kB / 0.5462 GB, free: 64.77 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001272/0.7298, allocations: 59.44 kB / 0.5463 GB, free: 64.71 MB / 378.7 MB Notification: Performance of SimCode: time 6.22e-07/0.7299, allocations: 0 / 0.5463 GB, free: 64.71 MB / 378.7 MB Notification: Performance of Templates: time 0.01991/0.7498, allocations: 11.99 MB / 0.558 GB, free: 52.88 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches