Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.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.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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001287/0.001287, allocations: 175.8 kB / 17.4 MB, free: 4.418 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.676/1.676, allocations: 223.3 MB / 241.4 MB, free: 9.965 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.0007644/0.0007645, allocations: 102 kB / 292.6 MB, free: 10.59 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002797/0.0002798, allocations: 15.98 kB / 352.4 MB, free: 14.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2012/0.2015, allocations: 50.39 MB / 402.8 MB, free: 32.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1097/0.3112, allocations: 99.47 MB / 0.4904 GB, free: 12.84 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002442/0.3115, allocations: 91.89 kB / 0.4905 GB, free: 12.75 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2556/0.5671, allocations: 27.42 MB / 0.5173 GB, free: 93.5 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.895e-06/0.5672, allocations: 0 / 0.5173 GB, free: 93.5 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001218/0.5673, allocations: 34 kB / 0.5173 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: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.003223/0.5705, allocations: 1.296 MB / 0.5186 GB, free: 92.63 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.545e-05/0.5706, allocations: 13.66 kB / 0.5186 GB, free: 92.63 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000887/0.5715, allocations: 191.4 kB / 0.5188 GB, free: 92.55 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001978/0.5735, allocations: 0.8692 MB / 0.5197 GB, free: 92 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.793e-05/0.5736, allocations: 77.03 kB / 0.5197 GB, free: 91.97 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002372/0.5738, allocations: 99.25 kB / 0.5198 GB, free: 91.93 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001817/0.5757, allocations: 0.9424 MB / 0.5207 GB, free: 91.47 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.213e-05/0.5757, allocations: 7.719 kB / 0.5208 GB, free: 91.46 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.439e-05/0.5758, allocations: 43.56 kB / 0.5208 GB, free: 91.43 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.659e-05/0.5758, allocations: 23.56 kB / 0.5208 GB, free: 91.43 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001138/0.577, allocations: 0.6224 MB / 0.5214 GB, free: 91.2 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004784/0.5818, allocations: 4.16 MB / 0.5255 GB, free: 88.02 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008083/0.5826, allocations: 380.9 kB / 0.5258 GB, free: 87.82 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002648/0.5829, allocations: 156.3 kB / 0.526 GB, free: 87.71 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.907e-05/0.5829, allocations: 4 kB / 0.526 GB, free: 87.7 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.236e-05/0.5829, allocations: 42.56 kB / 0.526 GB, free: 87.65 MB / 378.7 MB Notification: Performance of pre-optimization done (n=37): time 3.657e-06/0.5829, allocations: 3.938 kB / 0.526 GB, free: 87.65 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.002335/0.5853, allocations: 1.286 MB / 0.5273 GB, free: 86.29 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.456e-05/0.5853, allocations: 85.05 kB / 0.5274 GB, free: 86.19 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001043/0.5864, allocations: 0.8546 MB / 0.5282 GB, free: 85.31 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.76e-05/0.5864, allocations: 33.69 kB / 0.5282 GB, free: 85.27 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002593/0.5867, allocations: 0.5891 MB / 0.5288 GB, free: 84.67 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.12e-05/0.5868, allocations: 152.9 kB / 0.529 GB, free: 84.52 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.24e-05/0.5868, allocations: 20 kB / 0.529 GB, free: 84.5 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.819e-05/0.5869, allocations: 330 kB / 0.5293 GB, free: 84.18 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002865/0.5872, allocations: 165.9 kB / 0.5295 GB, free: 84.01 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003685/0.5875, allocations: 480.8 kB / 0.5299 GB, free: 83.4 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007247/0.5883, allocations: 0.6755 MB / 0.5306 GB, free: 82.58 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.252e-06/0.5883, allocations: 4 kB / 0.5306 GB, free: 82.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001102/0.5894, allocations: 0.7354 MB / 0.5313 GB, free: 81.83 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001732/0.5896, allocations: 404.1 kB / 0.5317 GB, free: 81.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.197e-05/0.5896, allocations: 8 kB / 0.5317 GB, free: 81.28 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001669/0.5898, allocations: 36.84 kB / 0.5317 GB, free: 81.24 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005293/0.5903, allocations: 175.7 kB / 0.5319 GB, free: 81.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006973/0.591, allocations: 1.282 MB / 0.5332 GB, free: 79.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006014/0.5916, allocations: 35.94 kB / 0.5332 GB, free: 79.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.685e-05/0.5917, allocations: 39.98 kB / 0.5332 GB, free: 79.59 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.444e-06/0.5917, allocations: 4 kB / 0.5332 GB, free: 79.58 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008351/0.5926, allocations: 0.6174 MB / 0.5338 GB, free: 78.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.402e-05/0.5926, allocations: 12 kB / 0.5338 GB, free: 78.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.411e-05/0.5927, allocations: 45.5 kB / 0.5339 GB, free: 78.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004703/0.5932, allocations: 167.7 kB / 0.534 GB, free: 78.74 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006196/0.5938, allocations: 1.28 MB / 0.5353 GB, free: 77.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005235/0.5943, allocations: 35.98 kB / 0.5353 GB, free: 77.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.204e-05/0.5944, allocations: 40 kB / 0.5354 GB, free: 77.25 MB / 378.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 () * Number of clocked 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.0004695/0.5948, allocations: 336.8 kB / 0.5357 GB, free: 76.91 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001227/0.595, allocations: 98.72 kB / 0.5358 GB, free: 76.81 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007235/0.5957, allocations: 427.5 kB / 0.5362 GB, free: 76.39 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.207e-06/0.5957, allocations: 4 kB / 0.5362 GB, free: 76.38 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.5957, allocations: 3.938 kB / 0.5362 GB, free: 76.38 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.5957, allocations: 0 / 0.5362 GB, free: 76.38 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001791/0.5975, allocations: 1.343 MB / 0.5375 GB, free: 74.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.5976, allocations: 0 / 0.5375 GB, free: 74.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003415/0.5979, allocations: 75.91 kB / 0.5376 GB, free: 74.89 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.859e-05/0.598, allocations: 24.84 kB / 0.5376 GB, free: 74.86 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.998e-05/0.598, allocations: 8 kB / 0.5376 GB, free: 74.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005695/0.5986, allocations: 1.281 MB / 0.5389 GB, free: 73.44 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.5986, allocations: 0 / 0.5389 GB, free: 73.44 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008559/0.5995, allocations: 0.697 MB / 0.5395 GB, free: 72.7 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000274/0.5998, allocations: 203.9 kB / 0.5397 GB, free: 72.48 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001309/0.5999, allocations: 8 kB / 0.5397 GB, free: 72.47 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003673/0.6003, allocations: 15.98 kB / 0.5398 GB, free: 72.45 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.625e-05/0.6004, allocations: 31.91 kB / 0.5398 GB, free: 72.42 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.037e-05/0.6004, allocations: 19.98 kB / 0.5398 GB, free: 72.4 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006624/0.6011, allocations: 0.5702 MB / 0.5404 GB, free: 71.82 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.6011, allocations: 0 / 0.5404 GB, free: 71.82 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001317/0.6024, allocations: 376 kB / 0.5407 GB, free: 71.45 MB / 378.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 () * Number of clocked 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.0004041/0.6028, allocations: 301.5 kB / 0.541 GB, free: 71.17 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001451/0.6043, allocations: 0.974 MB / 0.542 GB, free: 70.18 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.479e-06/0.6043, allocations: 0 / 0.542 GB, free: 70.18 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003387/0.6046, allocations: 278.4 kB / 0.5422 GB, free: 69.89 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001412/0.606, allocations: 229.7 kB / 0.5424 GB, free: 69.67 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00307/0.6091, allocations: 2.204 MB / 0.5446 GB, free: 67.41 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004807/0.6096, allocations: 1.021 MB / 0.5456 GB, free: 66.36 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006699/0.6103, allocations: 135.4 kB / 0.5457 GB, free: 66.23 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001392/0.6105, allocations: 59.44 kB / 0.5458 GB, free: 66.17 MB / 378.7 MB Notification: Performance of SimCode: time 7.82e-07/0.6105, allocations: 0 / 0.5458 GB, free: 66.17 MB / 378.7 MB Notification: Performance of Templates: time 0.02021/0.6307, allocations: 11.79 MB / 0.5573 GB, free: 54.52 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches