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_QuasiStationary.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_QuasiStationary,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") [: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.001637/0.001636, allocations: 183.7 kB / 8.154 MB, free: 2.184 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.611/1.611, allocations: 205.2 MB / 213.8 MB, free: 13.93 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.001254/0.001254, allocations: 95.92 kB / 261.8 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.175e-06/8.186e-06, allocations: 0 / 314.3 MB, free: 9.047 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2644/0.2645, allocations: 47.56 MB / 361.8 MB, free: 2.719 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1523/0.4168, allocations: 93.74 MB / 455.6 MB, free: 14.38 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002986/0.4172, allocations: 79.95 kB / 455.7 MB, free: 14.3 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.1645/0.5817, allocations: 40.24 MB / 495.9 MB, free: 5.754 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001147/0.5819, allocations: 35.94 kB / 495.9 MB, free: 5.719 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.004232/0.5861, allocations: 1.581 MB / 497.5 MB, free: 4.078 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.672e-05/0.5862, allocations: 8.031 kB / 497.5 MB, free: 4.07 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00142/0.5876, allocations: 257.6 kB / 497.8 MB, free: 3.816 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003461/0.5911, allocations: 1.109 MB / 498.9 MB, free: 2.66 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.034e-05/0.5912, allocations: 48 kB / 498.9 MB, free: 2.613 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003267/0.5916, allocations: 103.9 kB / 499 MB, free: 2.512 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002834/0.5944, allocations: 0.8145 MB / 499.9 MB, free: 1.695 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00334/0.5978, allocations: 1.204 MB / 0.4893 GB, free: 428 kB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.09e-05/0.5979, allocations: 7.906 kB / 0.4893 GB, free: 420 kB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001534/0.598, allocations: 0 / 0.4893 GB, free: 420 kB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.726e-05/0.5981, allocations: 44 kB / 0.4894 GB, free: 376 kB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01299/0.6111, allocations: 6.373 MB / 0.4956 GB, free: 9.648 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000641/0.6118, allocations: 222.6 kB / 0.4958 GB, free: 9.426 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005362/0.6124, allocations: 186.2 kB / 0.496 GB, free: 9.242 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.097e-05/0.6124, allocations: 8.438 kB / 0.496 GB, free: 9.234 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005287/0.613, allocations: 232.8 kB / 0.4962 GB, free: 8.98 MB / 442.7 MB Notification: Performance of pre-optimization done (n=50): time 4.97e-06/0.613, allocations: 0 / 0.4962 GB, free: 8.98 MB / 442.7 MB Notification: Performance of matching and sorting (n=56): time 0.003898/0.6169, allocations: 1.503 MB / 0.4977 GB, free: 7.414 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001167/0.617, allocations: 188.4 kB / 0.4979 GB, free: 7.188 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001895/0.6189, allocations: 0.8438 MB / 0.4987 GB, free: 6.332 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.653e-05/0.619, allocations: 33.73 kB / 0.4987 GB, free: 6.293 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006926/0.6197, allocations: 0.7398 MB / 0.4994 GB, free: 5.543 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002444/0.62, allocations: 201.2 kB / 0.4996 GB, free: 5.344 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.945e-05/0.6201, allocations: 0 / 0.4996 GB, free: 5.344 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001697/0.6202, allocations: 354.8 kB / 0.5 GB, free: 4.988 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005786/0.6208, allocations: 182.6 kB / 0.5001 GB, free: 4.812 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001072/0.6219, allocations: 0.754 MB / 0.5009 GB, free: 3.777 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008344/0.6228, allocations: 325.2 kB / 0.5012 GB, free: 3.461 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.265e-05/0.6228, allocations: 8 kB / 0.5012 GB, free: 3.453 MB / 442.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.002364/0.6252, allocations: 0.8658 MB / 0.502 GB, free: 2.574 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.043e-05/0.6252, allocations: 4 kB / 0.502 GB, free: 2.57 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.867e-05/0.6252, allocations: 24.06 kB / 0.5021 GB, free: 2.547 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002857/0.6255, allocations: 65.64 kB / 0.5021 GB, free: 2.477 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001662/0.6272, allocations: 275.5 kB / 0.5024 GB, free: 2.207 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002482/0.6297, allocations: 2.46 MB / 0.5048 GB, free: 15.52 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00114/0.6309, allocations: 52.03 kB / 0.5048 GB, free: 15.47 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001385/0.6311, allocations: 63.98 kB / 0.5049 GB, free: 15.41 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002453/0.6313, allocations: 85.19 kB / 0.505 GB, free: 15.32 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000375/0.6317, allocations: 118.5 kB / 0.5051 GB, free: 15.2 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001443/0.6332, allocations: 453.8 kB / 0.5055 GB, free: 14.73 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.024e-05/0.6332, allocations: 4 kB / 0.5055 GB, free: 14.73 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/0.6332, allocations: 0 / 0.5055 GB, free: 14.73 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.499e-05/0.6332, allocations: 11.89 kB / 0.5055 GB, free: 14.72 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004106/0.6374, allocations: 1.657 MB / 0.5072 GB, free: 12.96 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.236e-06/0.6374, allocations: 0 / 0.5072 GB, free: 12.96 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009234/0.6383, allocations: 112.3 kB / 0.5073 GB, free: 12.85 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002741/0.6386, allocations: 49.64 kB / 0.5073 GB, free: 12.8 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.387e-05/0.6387, allocations: 4 kB / 0.5073 GB, free: 12.79 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002375/0.6411, allocations: 2.449 MB / 0.5097 GB, free: 10.12 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.536e-06/0.6411, allocations: 7.938 kB / 0.5097 GB, free: 10.11 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002069/0.6432, allocations: 1.002 MB / 0.5107 GB, free: 8.965 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006592/0.6439, allocations: 223.6 kB / 0.5109 GB, free: 8.727 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00025/0.6442, allocations: 15.98 kB / 0.5109 GB, free: 8.711 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009785/0.6452, allocations: 31.89 kB / 0.511 GB, free: 8.68 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000141/0.6453, allocations: 47.88 kB / 0.511 GB, free: 8.633 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.515e-05/0.6454, allocations: 15.91 kB / 0.511 GB, free: 8.617 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.001462/0.6468, allocations: 0.6149 MB / 0.5116 GB, free: 7.996 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001779/0.6486, allocations: 284 kB / 0.5119 GB, free: 7.719 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.phi,dcpm1.inertiaRotor.w,dcpm1.la.i,dcpm2.inertiaRotor.phi,dcpm2.inertiaRotor.w) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005945/0.6493, allocations: 282.2 kB / 0.5122 GB, free: 7.434 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002011/0.6513, allocations: 0.7798 MB / 0.5129 GB, free: 6.633 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.456e-06/0.6513, allocations: 4.438 kB / 0.5129 GB, free: 6.629 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008766/0.6522, allocations: 407.3 kB / 0.5133 GB, free: 6.211 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002454/0.6547, allocations: 265.4 kB / 0.5136 GB, free: 5.953 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005908/0.6606, allocations: 1.893 MB / 0.5154 GB, free: 3.961 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001472/0.6622, allocations: 1.289 MB / 0.5167 GB, free: 2.645 MB / 458.7 MB Notification: Performance of SimCode: time 1.103e-06/0.6622, allocations: 4 kB / 0.5167 GB, free: 2.641 MB / 458.7 MB Notification: Performance of Templates: time 0.2086/0.8708, allocations: 29.93 MB / 0.5459 GB, free: 157.6 MB / 458.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_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_QuasiStationary/DCPM_QuasiStationary.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches