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.001468/0.001467, allocations: 178.4 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.542/1.542, allocations: 205.3 MB / 214.4 MB, free: 1.668 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008198/0.0008197, allocations: 86.23 kB / 262.4 MB, free: 1.617 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.36e-05/1.363e-05, allocations: 4 kB / 315.5 MB, free: 22.7 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07038/0.07041, allocations: 47.59 MB / 363.1 MB, free: 7.055 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3071/0.3775, allocations: 97.82 MB / 460.9 MB, free: 14.1 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000232/0.3778, allocations: 85.77 kB / 461 MB, free: 14.06 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07098/0.4488, allocations: 27.2 MB / 488.2 MB, free: 7.93 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.4488, allocations: 0 / 488.2 MB, free: 7.93 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.965e-05/0.4489, allocations: 28 kB / 488.2 MB, free: 7.902 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.001739/0.4507, allocations: 1.149 MB / 489.4 MB, free: 6.777 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.587e-05/0.4507, allocations: 8.031 kB / 489.4 MB, free: 6.77 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005912/0.4513, allocations: 190.9 kB / 489.6 MB, free: 6.582 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001446/0.4528, allocations: 0.854 MB / 490.4 MB, free: 5.867 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.317e-05/0.4528, allocations: 28 kB / 490.4 MB, free: 5.84 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001189/0.4529, allocations: 63.94 kB / 490.5 MB, free: 5.777 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009118/0.4539, allocations: 0.526 MB / 491 MB, free: 5.465 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001267/0.4551, allocations: 0.7655 MB / 491.8 MB, free: 4.688 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.364e-05/0.4552, allocations: 11.91 kB / 491.8 MB, free: 4.676 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.763e-05/0.4552, allocations: 0 / 491.8 MB, free: 4.676 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.168e-05/0.4553, allocations: 27.98 kB / 491.8 MB, free: 4.648 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004869/0.4602, allocations: 3.972 MB / 495.8 MB, free: 464 kB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007585/0.4609, allocations: 336.1 kB / 496.1 MB, free: 120 kB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000207/0.4612, allocations: 140.9 kB / 496.3 MB, free: 15.97 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.678e-05/0.4612, allocations: 4 kB / 496.3 MB, free: 15.97 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.53e-05/0.4612, allocations: 34.56 kB / 496.3 MB, free: 15.93 MB / 378.7 MB Notification: Performance of pre-optimization done (n=37): time 2.044e-06/0.4612, allocations: 0 / 496.3 MB, free: 15.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.001509/0.4628, allocations: 0.9783 MB / 497.3 MB, free: 14.89 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.012e-05/0.4628, allocations: 81.11 kB / 497.4 MB, free: 14.8 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000767/0.4636, allocations: 0.6373 MB / 498 MB, free: 14.15 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.732e-05/0.4636, allocations: 33.64 kB / 498 MB, free: 14.11 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003629/0.464, allocations: 0.599 MB / 498.6 MB, free: 13.5 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.448e-05/0.4641, allocations: 137.9 kB / 498.8 MB, free: 13.37 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.093e-05/0.4641, allocations: 7.875 kB / 498.8 MB, free: 13.36 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000112/0.4642, allocations: 334 kB / 499.1 MB, free: 13.03 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002041/0.4645, allocations: 129.6 kB / 499.2 MB, free: 12.9 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004027/0.4649, allocations: 446.3 kB / 499.7 MB, free: 12.32 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003016/0.4652, allocations: 203.8 kB / 499.9 MB, free: 12.12 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/0.4652, allocations: 4 kB / 499.9 MB, free: 12.12 MB / 378.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.0008951/0.4661, allocations: 0.6222 MB / 0.4888 GB, free: 11.48 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00132/0.4674, allocations: 4.093 MB / 0.4928 GB, free: 7.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.401e-05/0.4674, allocations: 8 kB / 0.4928 GB, free: 7.062 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001447/0.4676, allocations: 36.84 kB / 0.4928 GB, free: 7.023 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005706/0.4682, allocations: 167.7 kB / 0.493 GB, free: 6.859 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008533/0.469, allocations: 1.24 MB / 0.4942 GB, free: 5.504 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004997/0.4695, allocations: 27.89 kB / 0.4942 GB, free: 5.477 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.259e-05/0.4696, allocations: 32 kB / 0.4942 GB, free: 5.445 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.422e-06/0.4696, allocations: 8.156 kB / 0.4942 GB, free: 5.438 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007555/0.4704, allocations: 0.5013 MB / 0.4947 GB, free: 4.934 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/0.4704, allocations: 16.06 kB / 0.4947 GB, free: 4.918 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.998e-05/0.4705, allocations: 32.86 kB / 0.4948 GB, free: 4.883 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005043/0.471, allocations: 163.7 kB / 0.4949 GB, free: 4.723 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007453/0.4718, allocations: 1.244 MB / 0.4961 GB, free: 3.367 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004296/0.4722, allocations: 16 kB / 0.4962 GB, free: 3.352 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.556e-05/0.4722, allocations: 36 kB / 0.4962 GB, free: 3.316 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 () * 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.0001303/0.4724, allocations: 128.8 kB / 0.4963 GB, free: 3.184 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001139/0.4725, allocations: 94.92 kB / 0.4964 GB, free: 3.09 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000686/0.4732, allocations: 363.2 kB / 0.4968 GB, free: 2.723 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.49e-06/0.4732, allocations: 4 kB / 0.4968 GB, free: 2.719 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.685e-06/0.4732, allocations: 0 / 0.4968 GB, free: 2.719 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-06/0.4732, allocations: 3.984 kB / 0.4968 GB, free: 2.715 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001546/0.4748, allocations: 1.141 MB / 0.4979 GB, free: 1.504 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.4748, allocations: 4 kB / 0.4979 GB, free: 1.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003499/0.4752, allocations: 76.12 kB / 0.498 GB, free: 1.426 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.923e-05/0.4753, allocations: 24.84 kB / 0.498 GB, free: 1.398 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.35e-05/0.4753, allocations: 4 kB / 0.498 GB, free: 1.395 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007508/0.476, allocations: 1.233 MB / 0.4992 GB, free: 52 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/0.4761, allocations: 7.938 kB / 0.4992 GB, free: 44 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008235/0.4769, allocations: 0.7121 MB / 0.4999 GB, free: 15.24 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002502/0.4772, allocations: 196 kB / 0.5001 GB, free: 15.03 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.046e-05/0.4773, allocations: 7.984 kB / 0.5001 GB, free: 15.02 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003368/0.4776, allocations: 8 kB / 0.5001 GB, free: 15.02 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.29e-05/0.4777, allocations: 35.89 kB / 0.5001 GB, free: 14.98 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.093e-05/0.4777, allocations: 8 kB / 0.5001 GB, free: 14.97 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005885/0.4783, allocations: 487.1 kB / 0.5006 GB, free: 14.5 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4783, allocations: 3.938 kB / 0.5006 GB, free: 14.5 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00117/0.4795, allocations: 320 kB / 0.5009 GB, free: 14.18 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.0003626/0.4799, allocations: 257.2 kB / 0.5011 GB, free: 13.92 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001268/0.4811, allocations: 0.8754 MB / 0.502 GB, free: 13.02 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.4812, allocations: 0.75 kB / 0.502 GB, free: 13.02 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002956/0.4815, allocations: 254.1 kB / 0.5022 GB, free: 12.77 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000917/0.4824, allocations: 212.1 kB / 0.5024 GB, free: 12.56 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002165/0.4846, allocations: 1.304 MB / 0.5037 GB, free: 11.21 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005871/0.4852, allocations: 1.045 MB / 0.5047 GB, free: 10.13 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0007132/0.4859, allocations: 154.9 kB / 0.5049 GB, free: 9.977 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.603e-05/0.486, allocations: 51.44 kB / 0.5049 GB, free: 9.926 MB / 394.7 MB Notification: Performance of SimCode: time 3.71e-07/0.486, allocations: 0 / 0.5049 GB, free: 9.926 MB / 394.7 MB Notification: Performance of Templates: time 0.01796/0.504, allocations: 10.2 MB / 0.5149 GB, free: 15.72 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