Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.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.DC_CompareCharacteristics,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|dcpm.ia|dcpm.tauElectrical|dcee.ia|dcee.tauElectrical|dcse.ia|dcse.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w|loadInertia3.phi|loadInertia3.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|dcpm.ia|dcpm.tauElectrical|dcee.ia|dcee.tauElectrical|dcse.ia|dcse.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w|loadInertia3.phi|loadInertia3.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics") [: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 4.0.0+maint.om/package.mo): time 0.0008989/0.000899, allocations: 186.4 kB / 8.14 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.147/1.147, allocations: 221.4 MB / 229.9 MB, free: 3.094 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008476/0.0008476, allocations: 94.8 kB / 280.8 MB, free: 1.293 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.56e-06/5.59e-06, allocations: 0 / 336.5 MB, free: 9.543 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1858/0.1858, allocations: 50.41 MB / 386.9 MB, free: 37.93 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1183/0.3042, allocations: 110.9 MB / 497.9 MB, free: 7.734 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002522/0.3045, allocations: 83.89 kB / 497.9 MB, free: 7.652 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.333/0.6375, allocations: 69.95 MB / 0.5546 GB, free: 55.09 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001246/0.6377, allocations: 63.94 kB / 0.5546 GB, free: 55.02 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: 666 * Number of variables: 666 Notification: Performance of Generate backend data structure: time 0.003656/0.6413, allocations: 2.473 MB / 0.5571 GB, free: 52.5 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.219e-05/0.6414, allocations: 8.031 kB / 0.5571 GB, free: 52.49 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001528/0.6429, allocations: 495.7 kB / 0.5575 GB, free: 52 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003122/0.646, allocations: 1.884 MB / 0.5594 GB, free: 50.06 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.196e-05/0.6461, allocations: 84 kB / 0.5595 GB, free: 49.98 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002474/0.6464, allocations: 163.8 kB / 0.5596 GB, free: 49.82 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002495/0.6489, allocations: 1.377 MB / 0.561 GB, free: 48.44 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003066/0.652, allocations: 1.992 MB / 0.5629 GB, free: 46.32 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.323e-05/0.6521, allocations: 15.89 kB / 0.5629 GB, free: 46.31 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000158/0.6522, allocations: 3.984 kB / 0.5629 GB, free: 46.3 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-05/0.6523, allocations: 68 kB / 0.563 GB, free: 46.24 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01218/0.6645, allocations: 10.27 MB / 0.573 GB, free: 35.42 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005528/0.6651, allocations: 365.3 kB / 0.5734 GB, free: 35.05 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004704/0.6655, allocations: 339.7 kB / 0.5737 GB, free: 34.72 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.465e-05/0.6656, allocations: 16.7 kB / 0.5737 GB, free: 34.7 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.627e-05/0.6656, allocations: 43.34 kB / 0.5737 GB, free: 34.65 MB / 378.7 MB Notification: Performance of pre-optimization done (n=83): time 2.925e-06/0.6656, allocations: 0 / 0.5737 GB, free: 34.65 MB / 378.7 MB Notification: Performance of matching and sorting (n=92): time 0.00313/0.6688, allocations: 2.06 MB / 0.5758 GB, free: 32.54 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.15e-05/0.6688, allocations: 167 kB / 0.5759 GB, free: 32.33 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001723/0.6706, allocations: 1.454 MB / 0.5773 GB, free: 30.85 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.544e-05/0.6706, allocations: 29.7 kB / 0.5774 GB, free: 30.81 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004192/0.671, allocations: 1.187 MB / 0.5785 GB, free: 29.61 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001626/0.6712, allocations: 319.4 kB / 0.5788 GB, free: 29.29 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.222e-05/0.6713, allocations: 0 / 0.5788 GB, free: 29.29 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.724e-05/0.6714, allocations: 381.8 kB / 0.5792 GB, free: 28.91 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004612/0.6718, allocations: 292 kB / 0.5795 GB, free: 28.62 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006888/0.6725, allocations: 1.162 MB / 0.5806 GB, free: 27.04 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006323/0.6732, allocations: 0.5078 MB / 0.5811 GB, free: 26.53 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.316e-06/0.6732, allocations: 8 kB / 0.5811 GB, free: 26.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.00216/0.6753, allocations: 1.52 MB / 0.5826 GB, free: 24.98 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001721/0.6771, allocations: 12.23 MB / 0.5945 GB, free: 11.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.818e-05/0.6771, allocations: 31.94 kB / 0.5946 GB, free: 11.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005792/0.6777, allocations: 179.3 kB / 0.5947 GB, free: 11.49 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001332/0.679, allocations: 427.2 kB / 0.5951 GB, free: 11.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002883/0.6819, allocations: 5.343 MB / 0.6004 GB, free: 5.262 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001553/0.6835, allocations: 63.88 kB / 0.6004 GB, free: 5.199 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.22e-05/0.6836, allocations: 96 kB / 0.6005 GB, free: 5.105 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.394e-06/0.6836, allocations: 7.125 kB / 0.6005 GB, free: 5.102 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001784/0.6854, allocations: 1.279 MB / 0.6018 GB, free: 3.812 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.225e-05/0.6855, allocations: 32 kB / 0.6018 GB, free: 3.781 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000417/0.6859, allocations: 171.6 kB / 0.602 GB, free: 3.602 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001133/0.687, allocations: 415.2 kB / 0.6024 GB, free: 3.195 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003286/0.6903, allocations: 5.34 MB / 0.6076 GB, free: 13.39 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001504/0.6918, allocations: 56.05 kB / 0.6076 GB, free: 13.34 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000114/0.692, allocations: 92 kB / 0.6077 GB, free: 13.25 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 136 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (225): * Single equations (assignments): 221 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002677/0.6922, allocations: 180.2 kB / 0.6079 GB, free: 13.07 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003007/0.6925, allocations: 201.5 kB / 0.6081 GB, free: 12.87 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001564/0.6941, allocations: 0.7803 MB / 0.6088 GB, free: 12.06 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.187e-06/0.6941, allocations: 11.94 kB / 0.6089 GB, free: 12.05 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.6942, allocations: 4 kB / 0.6089 GB, free: 12.05 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.294e-05/0.6942, allocations: 11.95 kB / 0.6089 GB, free: 12.04 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004306/0.6985, allocations: 2.663 MB / 0.6115 GB, free: 9.227 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.427e-06/0.6985, allocations: 4 kB / 0.6115 GB, free: 9.223 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006806/0.6992, allocations: 164.2 kB / 0.6116 GB, free: 9.062 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004701/0.6997, allocations: 139.2 kB / 0.6118 GB, free: 8.914 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.298e-05/0.6997, allocations: 12 kB / 0.6118 GB, free: 8.902 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003668/0.7034, allocations: 5.125 MB / 0.6168 GB, free: 3.324 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.736e-06/0.7034, allocations: 11.94 kB / 0.6168 GB, free: 3.312 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002131/0.7056, allocations: 1.752 MB / 0.6185 GB, free: 1.262 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006683/0.7063, allocations: 346.4 kB / 0.6188 GB, free: 0.9023 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002761/0.7065, allocations: 8 kB / 0.6188 GB, free: 0.8945 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009146/0.7075, allocations: 56.08 kB / 0.6189 GB, free: 0.8398 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001005/0.7076, allocations: 60.41 kB / 0.619 GB, free: 0.7812 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.982e-05/0.7076, allocations: 28 kB / 0.619 GB, free: 0.7539 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.001606/0.7093, allocations: 1.048 MB / 0.62 GB, free: 15.68 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00313/0.7124, allocations: 0.8594 MB / 0.6208 GB, free: 14.82 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 6 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcee.inertiaRotor.phi,dcee.inertiaRotor.w,dcse.inertiaRotor.phi,dcse.inertiaRotor.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (83): * Single equations (assignments): 79 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006388/0.7131, allocations: 492.9 kB / 0.6213 GB, free: 14.33 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003554/0.7166, allocations: 2.439 MB / 0.6237 GB, free: 11.82 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.153e-06/0.7166, allocations: 8.125 kB / 0.6237 GB, free: 11.82 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000928/0.7176, allocations: 0.7332 MB / 0.6244 GB, free: 11.04 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002478/0.7201, allocations: 470.5 kB / 0.6249 GB, free: 10.58 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00641/0.7265, allocations: 3.183 MB / 0.628 GB, free: 7.266 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001712/0.7282, allocations: 1.755 MB / 0.6297 GB, free: 5.48 MB / 410.7 MB Notification: Performance of SimCode: time 7.41e-07/0.7283, allocations: 0 / 0.6297 GB, free: 5.48 MB / 410.7 MB Notification: Performance of Templates: time 0.1611/0.8893, allocations: 29.99 MB / 0.659 GB, free: 128.3 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DC_CompareCharacteristics/DC_CompareCharacteristics.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches