Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001865/0.00187, allocations: 182.3 kB / 8.154 MB, free: 2.199 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.719/1.719, allocations: 205.2 MB / 213.7 MB, free: 13.86 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.001244/0.001244, allocations: 91.95 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.764e-06/7.785e-06, allocations: 0 / 314.3 MB, free: 9.043 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.226/0.2261, allocations: 47.56 MB / 361.8 MB, free: 45.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1495/0.3756, allocations: 97.51 MB / 459.4 MB, free: 4.496 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003375/0.376, allocations: 83.89 kB / 459.4 MB, free: 4.414 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.1185/0.4945, allocations: 27.09 MB / 486.5 MB, free: 9.273 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001055/0.4947, allocations: 28 kB / 486.6 MB, free: 9.246 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.003265/0.4979, allocations: 1.168 MB / 487.7 MB, free: 8.031 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.924e-05/0.498, allocations: 8.031 kB / 487.7 MB, free: 8.023 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001257/0.4993, allocations: 198.2 kB / 487.9 MB, free: 7.828 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003132/0.5024, allocations: 0.8483 MB / 488.8 MB, free: 6.938 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.736e-05/0.5026, allocations: 32 kB / 488.8 MB, free: 6.906 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002196/0.5028, allocations: 67.89 kB / 488.9 MB, free: 6.84 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002006/0.5048, allocations: 0.5273 MB / 489.4 MB, free: 6.312 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002321/0.5072, allocations: 0.7663 MB / 490.2 MB, free: 5.504 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.722e-05/0.5073, allocations: 11.89 kB / 490.2 MB, free: 5.492 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001071/0.5074, allocations: 4 kB / 490.2 MB, free: 5.488 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.307e-05/0.5075, allocations: 24 kB / 490.2 MB, free: 5.465 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009785/0.5172, allocations: 3.971 MB / 494.2 MB, free: 1.273 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001131/0.5184, allocations: 234.3 kB / 494.4 MB, free: 1.039 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003838/0.5188, allocations: 136.8 kB / 494.5 MB, free: 0.9023 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.351e-05/0.5189, allocations: 4 kB / 494.5 MB, free: 0.8984 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.591e-05/0.519, allocations: 42.45 kB / 494.6 MB, free: 0.8477 MB / 378.7 MB Notification: Performance of pre-optimization done (n=37): time 3.046e-06/0.519, allocations: 4 kB / 494.6 MB, free: 0.8438 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.002953/0.5219, allocations: 0.972 MB / 495.6 MB, free: 15.81 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.684e-05/0.522, allocations: 81.11 kB / 495.6 MB, free: 15.71 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001516/0.5236, allocations: 0.6334 MB / 496.3 MB, free: 15.08 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001013/0.5237, allocations: 25.7 kB / 496.3 MB, free: 15.05 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003578/0.5241, allocations: 0.496 MB / 496.8 MB, free: 14.54 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000189/0.5243, allocations: 141.9 kB / 496.9 MB, free: 14.4 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.564e-05/0.5243, allocations: 4 kB / 496.9 MB, free: 14.4 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001458/0.5245, allocations: 334.8 kB / 497.3 MB, free: 14.06 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004436/0.5249, allocations: 133.5 kB / 497.4 MB, free: 13.93 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006562/0.5256, allocations: 446.2 kB / 497.8 MB, free: 13.35 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000612/0.5262, allocations: 211.8 kB / 498 MB, free: 13.14 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.971e-06/0.5263, allocations: 0 / 498 MB, free: 13.14 MB / 394.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001751/0.528, allocations: 0.5648 MB / 498.6 MB, free: 12.57 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001784/0.5299, allocations: 4.084 MB / 0.4909 GB, free: 8.16 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.051e-05/0.53, allocations: 11.91 kB / 0.4909 GB, free: 8.148 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002716/0.5303, allocations: 36.84 kB / 0.4909 GB, free: 8.109 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00133/0.5316, allocations: 171.7 kB / 0.4911 GB, free: 7.941 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001427/0.5331, allocations: 1.232 MB / 0.4923 GB, free: 6.598 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006882/0.5338, allocations: 19.98 kB / 0.4923 GB, free: 6.578 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.81e-05/0.5339, allocations: 32 kB / 0.4924 GB, free: 6.547 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/0.534, allocations: 7.906 kB / 0.4924 GB, free: 6.539 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00151/0.5355, allocations: 0.493 MB / 0.4929 GB, free: 6.043 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.454e-05/0.5355, allocations: 15.98 kB / 0.4929 GB, free: 6.027 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001612/0.5357, allocations: 33.64 kB / 0.4929 GB, free: 5.992 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001237/0.537, allocations: 167.8 kB / 0.4931 GB, free: 5.828 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001379/0.5384, allocations: 1.24 MB / 0.4943 GB, free: 4.469 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006882/0.5391, allocations: 19.89 kB / 0.4943 GB, free: 4.449 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.693e-05/0.5393, allocations: 36 kB / 0.4943 GB, free: 4.414 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.0002271/0.5395, allocations: 61.38 kB / 0.4944 GB, free: 4.348 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003026/0.5398, allocations: 86.88 kB / 0.4945 GB, free: 4.262 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001218/0.541, allocations: 362.7 kB / 0.4948 GB, free: 3.898 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.274e-05/0.5411, allocations: 4 kB / 0.4948 GB, free: 3.895 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.5411, allocations: 4 kB / 0.4948 GB, free: 3.891 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.163e-06/0.5411, allocations: 0 / 0.4948 GB, free: 3.891 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002692/0.5438, allocations: 1.141 MB / 0.4959 GB, free: 2.68 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.5439, allocations: 0 / 0.4959 GB, free: 2.68 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007678/0.5446, allocations: 76.11 kB / 0.496 GB, free: 2.605 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001842/0.5448, allocations: 32.75 kB / 0.496 GB, free: 2.57 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.275e-05/0.5449, allocations: 4 kB / 0.496 GB, free: 2.566 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001244/0.5461, allocations: 1.221 MB / 0.4972 GB, free: 1.234 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.656e-06/0.5462, allocations: 7.844 kB / 0.4972 GB, free: 1.227 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001627/0.5478, allocations: 0.718 MB / 0.4979 GB, free: 432 kB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005409/0.5484, allocations: 184 kB / 0.4981 GB, free: 228 kB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001807/0.5486, allocations: 7.906 kB / 0.4981 GB, free: 220 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007345/0.5494, allocations: 15.92 kB / 0.4981 GB, free: 204 kB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.542e-05/0.5495, allocations: 31.91 kB / 0.4982 GB, free: 172 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.057e-05/0.5495, allocations: 12 kB / 0.4982 GB, free: 160 kB / 394.7 MB Notification: Performance of sort global known variables: time 0.1264/0.6759, allocations: 484.7 kB / 0.4986 GB, free: 148.4 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001847/0.6779, allocations: 318.8 kB / 0.499 GB, free: 148.4 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.0004808/0.6784, allocations: 254.9 kB / 0.4992 GB, free: 148.3 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001921/0.6803, allocations: 0.8442 MB / 0.5 GB, free: 148.1 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.6804, allocations: 0 / 0.5 GB, free: 148.1 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004895/0.6809, allocations: 250.1 kB / 0.5003 GB, free: 148 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001778/0.6827, allocations: 201.4 kB / 0.5004 GB, free: 148 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004055/0.6868, allocations: 1.328 MB / 0.5017 GB, free: 147.5 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008988/0.6877, allocations: 1.117 MB / 0.5028 GB, free: 146.8 MB / 394.7 MB Notification: Performance of SimCode: time 1.943e-06/0.6877, allocations: 0 / 0.5028 GB, free: 146.8 MB / 394.7 MB Notification: Performance of Templates: time 0.02584/0.7136, allocations: 16.55 MB / 0.519 GB, free: 146.3 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches