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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001513/0.001513, allocations: 179.5 kB / 8.48 MB, free: 1.883 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.179/1.179, allocations: 205.2 MB / 214.1 MB, free: 5.457 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.0008604/0.0008604, allocations: 82.27 kB / 262.1 MB, free: 5.512 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.021e-06/6.051e-06, allocations: 0 / 315 MB, free: 41.54 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06823/0.06825, allocations: 47.57 MB / 362.5 MB, free: 10.01 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2152/0.2835, allocations: 97.51 MB / 460.1 MB, free: 7.203 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000203/0.2837, allocations: 84.11 kB / 460.1 MB, free: 7.191 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.06695/0.3507, allocations: 27.08 MB / 487.2 MB, free: 5.457 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.286e-05/0.3507, allocations: 24 kB / 487.2 MB, free: 5.434 MB / 330.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.00168/0.3524, allocations: 1.168 MB / 488.4 MB, free: 4.289 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.293e-05/0.3525, allocations: 8.031 kB / 488.4 MB, free: 4.281 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006455/0.3531, allocations: 198.2 kB / 488.6 MB, free: 4.086 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001541/0.3547, allocations: 0.8603 MB / 489.5 MB, free: 3.363 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.621e-05/0.3547, allocations: 32 kB / 489.5 MB, free: 3.332 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001134/0.3549, allocations: 63.66 kB / 489.6 MB, free: 3.273 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009589/0.3558, allocations: 0.5223 MB / 490.1 MB, free: 2.965 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001185/0.357, allocations: 0.7742 MB / 490.9 MB, free: 2.367 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.452e-05/0.3571, allocations: 11.89 kB / 490.9 MB, free: 2.355 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.258e-05/0.3571, allocations: 0 / 490.9 MB, free: 2.355 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.153e-05/0.3572, allocations: 24 kB / 490.9 MB, free: 2.332 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004822/0.362, allocations: 3.975 MB / 494.9 MB, free: 14.91 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006105/0.3626, allocations: 238.5 kB / 495.1 MB, free: 14.74 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001945/0.3628, allocations: 135 kB / 495.2 MB, free: 14.66 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.459e-05/0.3629, allocations: 4 kB / 495.2 MB, free: 14.65 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.106e-05/0.3629, allocations: 42.28 kB / 495.3 MB, free: 14.61 MB / 346.7 MB Notification: Performance of pre-optimization done (n=37): time 2.455e-06/0.3629, allocations: 0 / 495.3 MB, free: 14.61 MB / 346.7 MB Notification: Performance of matching and sorting (n=40): time 0.001565/0.3645, allocations: 0.979 MB / 496.3 MB, free: 13.73 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.339e-05/0.3645, allocations: 81.11 kB / 496.3 MB, free: 13.63 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007586/0.3653, allocations: 0.6375 MB / 497 MB, free: 13.15 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.799e-05/0.3653, allocations: 25.7 kB / 497 MB, free: 13.12 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002407/0.3656, allocations: 496.9 kB / 497.5 MB, free: 12.69 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001195/0.3657, allocations: 141.9 kB / 497.6 MB, free: 12.57 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.116e-05/0.3657, allocations: 0 / 497.6 MB, free: 12.57 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.721e-05/0.3658, allocations: 335.8 kB / 498 MB, free: 12.24 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002164/0.3661, allocations: 135.9 kB / 498.1 MB, free: 12.16 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003725/0.3664, allocations: 435.2 kB / 498.5 MB, free: 11.67 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003147/0.3668, allocations: 209.8 kB / 498.7 MB, free: 11.54 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.3668, allocations: 3.938 kB / 498.7 MB, free: 11.53 MB / 346.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.0009959/0.3678, allocations: 0.6223 MB / 499.3 MB, free: 11.02 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001154/0.3689, allocations: 4.082 MB / 0.4916 GB, free: 6.688 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.427e-05/0.369, allocations: 12 kB / 0.4916 GB, free: 6.676 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001431/0.3691, allocations: 36.22 kB / 0.4917 GB, free: 6.641 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006416/0.3698, allocations: 171.2 kB / 0.4918 GB, free: 6.477 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009285/0.3707, allocations: 1.237 MB / 0.493 GB, free: 5.164 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005895/0.3713, allocations: 19.89 kB / 0.4931 GB, free: 5.145 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.516e-05/0.3714, allocations: 38.12 kB / 0.4931 GB, free: 5.113 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.901e-06/0.3714, allocations: 4 kB / 0.4931 GB, free: 5.109 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008025/0.3722, allocations: 0.4906 MB / 0.4936 GB, free: 4.727 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/0.3722, allocations: 8 kB / 0.4936 GB, free: 4.719 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.051e-05/0.3723, allocations: 40.47 kB / 0.4936 GB, free: 4.68 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005603/0.3729, allocations: 173.7 kB / 0.4938 GB, free: 4.516 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007651/0.3736, allocations: 1.236 MB / 0.495 GB, free: 3.195 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004847/0.3742, allocations: 12 kB / 0.495 GB, free: 3.184 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.205e-05/0.3742, allocations: 49.7 kB / 0.4951 GB, free: 3.141 MB / 346.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.0001514/0.3744, allocations: 140 kB / 0.4952 GB, free: 3 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001205/0.3745, allocations: 82.97 kB / 0.4953 GB, free: 2.918 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006871/0.3752, allocations: 368.4 kB / 0.4956 GB, free: 2.555 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.499e-06/0.3752, allocations: 4 kB / 0.4956 GB, free: 2.551 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.3752, allocations: 0 / 0.4956 GB, free: 2.551 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.3752, allocations: 0 / 0.4956 GB, free: 2.551 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001591/0.3768, allocations: 1.141 MB / 0.4967 GB, free: 1.34 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.3768, allocations: 0 / 0.4967 GB, free: 1.34 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003874/0.3772, allocations: 79.89 kB / 0.4968 GB, free: 1.262 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.489e-05/0.3773, allocations: 25.08 kB / 0.4968 GB, free: 1.234 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.669e-05/0.3774, allocations: 7.984 kB / 0.4968 GB, free: 1.227 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007618/0.3781, allocations: 1.225 MB / 0.498 GB, free: 15.89 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/0.3782, allocations: 4.031 kB / 0.498 GB, free: 15.88 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007976/0.379, allocations: 0.7167 MB / 0.4987 GB, free: 15.08 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000227/0.3792, allocations: 188 kB / 0.4989 GB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001065/0.3793, allocations: 4 kB / 0.4989 GB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000385/0.3797, allocations: 15.98 kB / 0.4989 GB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.127e-05/0.3798, allocations: 23.88 kB / 0.499 GB, free: 14.83 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.482e-05/0.3798, allocations: 16 kB / 0.499 GB, free: 14.82 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0005618/0.3804, allocations: 487.1 kB / 0.4994 GB, free: 14.34 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001132/0.3815, allocations: 316 kB / 0.4997 GB, free: 14.04 MB / 362.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.0003705/0.3819, allocations: 266.4 kB / 0.5 GB, free: 13.77 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001229/0.3831, allocations: 0.8681 MB / 0.5009 GB, free: 12.88 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3831, allocations: 320 / 0.5009 GB, free: 12.88 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002988/0.3834, allocations: 257.7 kB / 0.5011 GB, free: 12.62 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008798/0.3843, allocations: 192.9 kB / 0.5013 GB, free: 12.43 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002544/0.3869, allocations: 1.332 MB / 0.5026 GB, free: 11.05 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006873/0.3876, allocations: 1.107 MB / 0.5037 GB, free: 9.914 MB / 362.7 MB Notification: Performance of SimCode: time 1.714e-06/0.3876, allocations: 0 / 0.5037 GB, free: 9.914 MB / 362.7 MB Notification: Performance of Templates: time 0.02235/0.41, allocations: 12.23 MB / 0.5156 GB, free: 13.68 MB / 378.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