Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009291/0.0009291, allocations: 201.2 kB / 18.11 MB, free: 3.719 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.476/1.476, allocations: 226.5 MB / 245.4 MB, free: 6.5 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007856/0.0007856, allocations: 94.69 kB / 297.5 MB, free: 6.664 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002245/0.0002246, allocations: 8 kB / 358.1 MB, free: 10.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1917/0.1919, allocations: 51.3 MB / 409.4 MB, free: 27.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.111/0.303, allocations: 96.53 MB / 0.4941 GB, free: 10.91 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002443/0.3033, allocations: 85.14 kB / 0.4941 GB, free: 10.82 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2631/0.5664, allocations: 40.66 MB / 0.5338 GB, free: 78.66 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.5665, allocations: 0 / 0.5338 GB, free: 78.66 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.885e-05/0.5666, allocations: 32 kB / 0.5339 GB, free: 78.63 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.002977/0.5696, allocations: 1.736 MB / 0.5356 GB, free: 76.83 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.42e-05/0.5696, allocations: 12.03 kB / 0.5356 GB, free: 76.82 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007191/0.5703, allocations: 254.5 kB / 0.5358 GB, free: 76.57 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001634/0.572, allocations: 1.137 MB / 0.5369 GB, free: 75.39 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.205e-05/0.572, allocations: 112.2 kB / 0.537 GB, free: 75.28 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001626/0.5722, allocations: 159.9 kB / 0.5372 GB, free: 75.12 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002055/0.5743, allocations: 1.49 MB / 0.5387 GB, free: 73.56 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.203e-05/0.5743, allocations: 15.84 kB / 0.5387 GB, free: 73.55 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.888e-05/0.5745, allocations: 60 kB / 0.5387 GB, free: 73.49 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.324e-05/0.5745, allocations: 43.94 kB / 0.5388 GB, free: 73.45 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00151/0.576, allocations: 0.9825 MB / 0.5397 GB, free: 72.46 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006908/0.5829, allocations: 6.659 MB / 0.5462 GB, free: 65.43 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007882/0.5837, allocations: 416.7 kB / 0.5466 GB, free: 65.02 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004192/0.5842, allocations: 229.2 kB / 0.5468 GB, free: 64.8 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.916e-05/0.5842, allocations: 4.438 kB / 0.5468 GB, free: 64.79 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004906/0.5847, allocations: 285.6 kB / 0.5471 GB, free: 64.49 MB / 378.7 MB Notification: Performance of pre-optimization done (n=50): time 2.725e-06/0.5847, allocations: 0 / 0.5471 GB, free: 64.49 MB / 378.7 MB Notification: Performance of matching and sorting (n=56): time 0.002956/0.5877, allocations: 2.015 MB / 0.5491 GB, free: 62.38 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.954e-05/0.5878, allocations: 192.5 kB / 0.5493 GB, free: 62.14 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001193/0.589, allocations: 1.222 MB / 0.5505 GB, free: 60.91 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.28e-05/0.589, allocations: 37.7 kB / 0.5505 GB, free: 60.86 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004/0.5894, allocations: 0.8708 MB / 0.5514 GB, free: 59.98 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.59e-05/0.5895, allocations: 205.2 kB / 0.5515 GB, free: 59.78 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.984e-05/0.5895, allocations: 20 kB / 0.5516 GB, free: 59.76 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.427e-05/0.5896, allocations: 357.9 kB / 0.5519 GB, free: 59.41 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003689/0.59, allocations: 238.5 kB / 0.5521 GB, free: 59.18 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005573/0.5906, allocations: 0.8159 MB / 0.5529 GB, free: 58.08 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009574/0.5915, allocations: 1.142 MB / 0.554 GB, free: 56.66 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.773e-06/0.5915, allocations: 8 kB / 0.5541 GB, free: 56.65 MB / 378.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.00145/0.593, allocations: 1.185 MB / 0.5552 GB, free: 55.45 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.349e-05/0.593, allocations: 45.7 kB / 0.5553 GB, free: 55.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.542e-05/0.5931, allocations: 20 kB / 0.5553 GB, free: 55.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001777/0.5932, allocations: 57.7 kB / 0.5553 GB, free: 55.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006561/0.5939, allocations: 271.5 kB / 0.5556 GB, free: 55.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001168/0.5951, allocations: 2.583 MB / 0.5581 GB, free: 52.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007184/0.5958, allocations: 72.05 kB / 0.5582 GB, free: 52.13 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.97e-05/0.5959, allocations: 60 kB / 0.5582 GB, free: 52.07 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 1 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004489/0.5963, allocations: 369.2 kB / 0.5586 GB, free: 51.7 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001043/0.5965, allocations: 134.3 kB / 0.5587 GB, free: 51.57 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008371/0.5973, allocations: 0.5567 MB / 0.5593 GB, free: 51 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.5973, allocations: 8 kB / 0.5593 GB, free: 50.99 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.5973, allocations: 0 / 0.5593 GB, free: 50.99 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.5973, allocations: 7.938 kB / 0.5593 GB, free: 50.98 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00199/0.5993, allocations: 1.928 MB / 0.5612 GB, free: 48.94 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.5993, allocations: 4 kB / 0.5612 GB, free: 48.93 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003712/0.5997, allocations: 115.7 kB / 0.5613 GB, free: 48.82 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001114/0.5998, allocations: 50.17 kB / 0.5613 GB, free: 48.77 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.61e-05/0.5999, allocations: 16 kB / 0.5613 GB, free: 48.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001051/0.6009, allocations: 2.541 MB / 0.5638 GB, free: 45.95 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.601, allocations: 8.062 kB / 0.5638 GB, free: 45.94 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001054/0.602, allocations: 0.934 MB / 0.5647 GB, free: 44.93 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002756/0.6023, allocations: 255.3 kB / 0.565 GB, free: 44.66 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001233/0.6024, allocations: 23.98 kB / 0.565 GB, free: 44.64 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004728/0.6029, allocations: 31.98 kB / 0.565 GB, free: 44.61 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.053e-05/0.603, allocations: 55.81 kB / 0.5651 GB, free: 44.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.301e-05/0.6031, allocations: 23.98 kB / 0.5651 GB, free: 44.53 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008396/0.6039, allocations: 0.7993 MB / 0.5659 GB, free: 43.73 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6039, allocations: 0 / 0.5659 GB, free: 43.73 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009889/0.6049, allocations: 355.9 kB / 0.5662 GB, free: 43.38 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.phi,dcpm1.inertiaRotor.w,dcpm1.la.i,dcpm2.inertiaRotor.phi,dcpm2.inertiaRotor.w) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003961/0.6053, allocations: 313.5 kB / 0.5665 GB, free: 43.07 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001098/0.6064, allocations: 0.9319 MB / 0.5674 GB, free: 42.1 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.6064, allocations: 0 / 0.5674 GB, free: 42.1 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004988/0.6069, allocations: 479.6 kB / 0.5679 GB, free: 41.61 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001789/0.6087, allocations: 312.2 kB / 0.5682 GB, free: 41.31 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003203/0.612, allocations: 3.099 MB / 0.5712 GB, free: 38.13 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004784/0.6124, allocations: 1.182 MB / 0.5724 GB, free: 36.92 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006018/0.6131, allocations: 175.3 kB / 0.5725 GB, free: 36.74 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001391/0.6132, allocations: 83.44 kB / 0.5726 GB, free: 36.66 MB / 378.7 MB Notification: Performance of SimCode: time 3.21e-07/0.6132, allocations: 4 kB / 0.5726 GB, free: 36.66 MB / 378.7 MB Notification: Performance of Templates: time 0.02378/0.637, allocations: 16.06 MB / 0.5883 GB, free: 20.71 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches