Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001033/0.001033, allocations: 173 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.403/1.403, allocations: 205.2 MB / 219.8 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008805/0.0008806, allocations: 86.66 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.864e-05/1.866e-05, allocations: 0 / 322.4 MB, free: 17.36 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07898/0.07902, allocations: 47.58 MB / 370 MB, free: 1.711 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2929/0.3719, allocations: 98.25 MB / 468.3 MB, free: 11.31 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002587/0.3722, allocations: 87.95 kB / 468.4 MB, free: 11.27 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07252/0.4448, allocations: 27.6 MB / 496 MB, free: 0.75 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.577e-06/0.4448, allocations: 0 / 496 MB, free: 0.75 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.153e-05/0.4449, allocations: 27.94 kB / 496 MB, free: 0.7227 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.001798/0.4467, allocations: 1.146 MB / 497.1 MB, free: 15.53 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.4467, allocations: 12.03 kB / 497.1 MB, free: 15.52 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005761/0.4473, allocations: 190.9 kB / 497.3 MB, free: 15.33 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001504/0.4488, allocations: 0.8438 MB / 498.2 MB, free: 14.44 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.072e-05/0.4489, allocations: 74 kB / 498.2 MB, free: 14.37 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001267/0.449, allocations: 103.9 kB / 498.3 MB, free: 14.27 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001443/0.4505, allocations: 0.9108 MB / 499.3 MB, free: 13.32 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.931e-05/0.4505, allocations: 3.906 kB / 499.3 MB, free: 13.31 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.432e-05/0.4506, allocations: 40 kB / 499.3 MB, free: 13.27 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.23e-05/0.4506, allocations: 24 kB / 499.3 MB, free: 13.25 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001004/0.4517, allocations: 0.5819 MB / 499.9 MB, free: 12.67 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005064/0.4567, allocations: 4.165 MB / 0.4923 GB, free: 8.262 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008039/0.4576, allocations: 360 kB / 0.4926 GB, free: 7.902 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002285/0.4578, allocations: 140.9 kB / 0.4927 GB, free: 7.762 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.668e-05/0.4578, allocations: 4 kB / 0.4927 GB, free: 7.758 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.789e-05/0.4579, allocations: 42.5 kB / 0.4928 GB, free: 7.707 MB / 378.7 MB Notification: Performance of pre-optimization done (n=37): time 2.365e-06/0.4579, allocations: 0 / 0.4928 GB, free: 7.707 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.001654/0.4595, allocations: 1.058 MB / 0.4938 GB, free: 6.586 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.207e-05/0.4596, allocations: 85.11 kB / 0.4939 GB, free: 6.484 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000927/0.4605, allocations: 0.7411 MB / 0.4946 GB, free: 5.719 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.137e-05/0.4606, allocations: 41.64 kB / 0.4947 GB, free: 5.672 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003831/0.461, allocations: 0.5915 MB / 0.4952 GB, free: 5.07 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.566e-05/0.4611, allocations: 141.9 kB / 0.4954 GB, free: 4.93 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.953e-05/0.4611, allocations: 16 kB / 0.4954 GB, free: 4.914 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001078/0.4612, allocations: 338 kB / 0.4957 GB, free: 4.578 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002413/0.4615, allocations: 141.6 kB / 0.4958 GB, free: 4.441 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004504/0.4619, allocations: 462.6 kB / 0.4963 GB, free: 3.84 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003395/0.4623, allocations: 227.8 kB / 0.4965 GB, free: 3.617 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/0.4623, allocations: 4 kB / 0.4965 GB, free: 3.613 MB / 378.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001017/0.4633, allocations: 0.7077 MB / 0.4972 GB, free: 2.895 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001469/0.4648, allocations: 4.096 MB / 0.5012 GB, free: 14.48 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.47e-05/0.4648, allocations: 8 kB / 0.5012 GB, free: 14.47 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001515/0.465, allocations: 40.84 kB / 0.5012 GB, free: 14.43 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000564/0.4656, allocations: 171.7 kB / 0.5014 GB, free: 14.26 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009468/0.4665, allocations: 1.288 MB / 0.5027 GB, free: 12.84 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005026/0.467, allocations: 36.09 kB / 0.5027 GB, free: 12.81 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.423e-05/0.4671, allocations: 44 kB / 0.5027 GB, free: 12.77 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.133e-06/0.4671, allocations: 4 kB / 0.5027 GB, free: 12.76 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008694/0.468, allocations: 0.5906 MB / 0.5033 GB, free: 12.17 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.468, allocations: 11.94 kB / 0.5033 GB, free: 12.16 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.199e-05/0.4681, allocations: 32.86 kB / 0.5034 GB, free: 12.12 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005127/0.4686, allocations: 171.7 kB / 0.5035 GB, free: 11.95 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007966/0.4694, allocations: 1.292 MB / 0.5048 GB, free: 10.53 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000442/0.4699, allocations: 24 kB / 0.5048 GB, free: 10.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.479e-05/0.4699, allocations: 40 kB / 0.5048 GB, free: 10.46 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 90 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001445/0.4701, allocations: 161.6 kB / 0.505 GB, free: 10.3 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001142/0.4702, allocations: 90.88 kB / 0.5051 GB, free: 10.21 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007032/0.4709, allocations: 403.3 kB / 0.5055 GB, free: 9.809 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.4709, allocations: 7.938 kB / 0.5055 GB, free: 9.801 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.424e-06/0.4709, allocations: 0 / 0.5055 GB, free: 9.801 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.4709, allocations: 0 / 0.5055 GB, free: 9.801 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001728/0.4727, allocations: 1.309 MB / 0.5068 GB, free: 8.41 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.2e-06/0.4727, allocations: 4 kB / 0.5068 GB, free: 8.406 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003552/0.4731, allocations: 76.12 kB / 0.5068 GB, free: 8.332 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.646e-05/0.4731, allocations: 24.84 kB / 0.5069 GB, free: 8.305 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.983e-05/0.4732, allocations: 12 kB / 0.5069 GB, free: 8.293 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008118/0.474, allocations: 1.272 MB / 0.5081 GB, free: 6.887 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.474, allocations: 8.016 kB / 0.5081 GB, free: 6.879 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008563/0.4749, allocations: 0.7607 MB / 0.5089 GB, free: 6.031 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002486/0.4751, allocations: 200 kB / 0.5091 GB, free: 5.816 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.794e-05/0.4752, allocations: 11.98 kB / 0.5091 GB, free: 5.805 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003642/0.4756, allocations: 19.98 kB / 0.5091 GB, free: 5.785 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.274e-05/0.4757, allocations: 35.86 kB / 0.5091 GB, free: 5.75 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.466e-05/0.4757, allocations: 16 kB / 0.5091 GB, free: 5.734 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0006886/0.4764, allocations: 0.559 MB / 0.5097 GB, free: 5.16 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4764, allocations: 0 / 0.5097 GB, free: 5.16 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001117/0.4775, allocations: 387.9 kB / 0.5101 GB, free: 4.781 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003959/0.4779, allocations: 281.4 kB / 0.5103 GB, free: 4.496 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001318/0.4793, allocations: 0.9669 MB / 0.5113 GB, free: 3.504 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.4793, allocations: 0 / 0.5113 GB, free: 3.504 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000321/0.4796, allocations: 271.3 kB / 0.5115 GB, free: 3.227 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009617/0.4806, allocations: 228.1 kB / 0.5117 GB, free: 3.004 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002359/0.483, allocations: 1.334 MB / 0.513 GB, free: 1.617 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005823/0.4836, allocations: 1.05 MB / 0.5141 GB, free: 0.5391 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0007401/0.4843, allocations: 163.4 kB / 0.5142 GB, free: 384 kB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.62e-05/0.4844, allocations: 47.44 kB / 0.5143 GB, free: 336 kB / 394.7 MB Notification: Performance of SimCode: time 6.41e-07/0.4844, allocations: 0 / 0.5143 GB, free: 336 kB / 394.7 MB Notification: Performance of Templates: time 0.02366/0.5081, allocations: 13.25 MB / 0.5272 GB, free: 3.066 MB / 410.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches