Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") [: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.002436/0.002436, allocations: 179.7 kB / 8.151 MB, free: 2.195 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.725/1.725, allocations: 205.2 MB / 213.7 MB, free: 13.94 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.001302/0.001301, allocations: 94.41 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.698e-06/9.848e-06, allocations: 0 / 314.3 MB, free: 9.055 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2285/0.2285, allocations: 47.55 MB / 361.8 MB, free: 45.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1439/0.3725, allocations: 97.48 MB / 459.3 MB, free: 4.574 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003214/0.3729, allocations: 79.95 kB / 459.4 MB, free: 4.496 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.1196/0.4925, allocations: 28.19 MB / 487.6 MB, free: 8.227 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.05e-05/0.4926, allocations: 20 kB / 487.6 MB, free: 8.207 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002952/0.4956, allocations: 1.164 MB / 488.8 MB, free: 6.996 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.099e-05/0.4957, allocations: 12.03 kB / 488.8 MB, free: 6.984 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001141/0.4968, allocations: 194.3 kB / 489 MB, free: 6.793 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002539/0.4994, allocations: 0.8166 MB / 489.8 MB, free: 5.934 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.822e-05/0.4994, allocations: 32 kB / 489.8 MB, free: 5.902 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001978/0.4997, allocations: 59.91 kB / 489.9 MB, free: 5.844 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00188/0.5015, allocations: 0.539 MB / 490.4 MB, free: 5.305 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002199/0.5038, allocations: 0.7552 MB / 491.2 MB, free: 4.52 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.877e-05/0.5038, allocations: 3.906 kB / 491.2 MB, free: 4.516 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001056/0.504, allocations: 7.984 kB / 491.2 MB, free: 4.508 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.553e-05/0.504, allocations: 27.98 kB / 491.2 MB, free: 4.48 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008708/0.5127, allocations: 3.764 MB / 495 MB, free: 0.5078 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005181/0.5133, allocations: 178 kB / 495.2 MB, free: 336 kB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009053/0.5142, allocations: 260.8 kB / 495.4 MB, free: 72 kB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.538e-05/0.5143, allocations: 8 kB / 495.4 MB, free: 64 kB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.588e-05/0.5143, allocations: 42.5 kB / 495.5 MB, free: 12 kB / 378.7 MB Notification: Performance of pre-optimization done (n=43): time 2.765e-06/0.5143, allocations: 0 / 495.5 MB, free: 12 kB / 378.7 MB Notification: Performance of matching and sorting (n=48): time 0.003391/0.5177, allocations: 1.124 MB / 496.6 MB, free: 14.83 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.013e-05/0.5178, allocations: 85.55 kB / 496.7 MB, free: 14.73 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001365/0.5192, allocations: 0.5976 MB / 497.3 MB, free: 14.12 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.258e-05/0.5193, allocations: 25.7 kB / 497.3 MB, free: 14.09 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003407/0.5196, allocations: 492.2 kB / 497.8 MB, free: 13.61 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001887/0.5198, allocations: 165.5 kB / 497.9 MB, free: 13.44 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.847e-05/0.5199, allocations: 0 / 497.9 MB, free: 13.44 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000171/0.5201, allocations: 346.8 kB / 498.3 MB, free: 13.09 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004574/0.5205, allocations: 141.6 kB / 498.4 MB, free: 12.95 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000687/0.5212, allocations: 428.4 kB / 498.8 MB, free: 12.4 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006125/0.5219, allocations: 220.6 kB / 499 MB, free: 12.18 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.546e-06/0.5219, allocations: 4 kB / 499 MB, free: 12.18 MB / 394.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001895/0.5238, allocations: 0.6295 MB / 499.7 MB, free: 11.54 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.183e-05/0.5239, allocations: 4 kB / 499.7 MB, free: 11.54 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.273e-05/0.5239, allocations: 8 kB / 499.7 MB, free: 11.53 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004625/0.5244, allocations: 93.95 kB / 499.8 MB, free: 11.43 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001165/0.5255, allocations: 163.7 kB / 499.9 MB, free: 11.27 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003848/0.5294, allocations: 2.929 MB / 0.4911 GB, free: 8.117 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006781/0.5301, allocations: 31.95 kB / 0.4911 GB, free: 8.086 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.504e-05/0.5302, allocations: 32 kB / 0.4911 GB, free: 8.055 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 83 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001685/0.5304, allocations: 49.45 kB / 0.4912 GB, free: 8 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002858/0.5307, allocations: 82.97 kB / 0.4913 GB, free: 7.918 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001509/0.5322, allocations: 457.2 kB / 0.4917 GB, free: 7.453 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.034e-05/0.5322, allocations: 4 kB / 0.4917 GB, free: 7.449 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.755e-06/0.5323, allocations: 0 / 0.4917 GB, free: 7.449 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.085e-05/0.5323, allocations: 3.984 kB / 0.4917 GB, free: 7.445 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003441/0.5357, allocations: 1.299 MB / 0.493 GB, free: 6.07 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.859e-06/0.5358, allocations: 4.062 kB / 0.493 GB, free: 6.066 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007068/0.5365, allocations: 83.89 kB / 0.4931 GB, free: 5.984 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004895/0.537, allocations: 86.08 kB / 0.4931 GB, free: 5.895 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.657e-05/0.5371, allocations: 11.94 kB / 0.4932 GB, free: 5.883 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003668/0.5408, allocations: 2.886 MB / 0.496 GB, free: 2.754 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.22e-06/0.5408, allocations: 0 / 0.496 GB, free: 2.754 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001985/0.5428, allocations: 0.8323 MB / 0.4968 GB, free: 1.836 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004774/0.5433, allocations: 196 kB / 0.497 GB, free: 1.625 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000174/0.5435, allocations: 0 / 0.497 GB, free: 1.625 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007863/0.5443, allocations: 28.05 kB / 0.497 GB, free: 1.598 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.836e-05/0.5444, allocations: 43.8 kB / 0.497 GB, free: 1.555 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.343e-05/0.5445, allocations: 12 kB / 0.4971 GB, free: 1.543 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0009755/0.5455, allocations: 455.2 kB / 0.4975 GB, free: 1.105 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001236/0.5467, allocations: 196 kB / 0.4977 GB, free: 0.9141 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 37 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005195/0.5472, allocations: 256.5 kB / 0.4979 GB, free: 0.6602 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001594/0.5488, allocations: 0.6329 MB / 0.4985 GB, free: 4 kB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.648e-06/0.5489, allocations: 2 kB / 0.4985 GB, free: 4 kB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.1202/0.6691, allocations: 408.9 kB / 0.4989 GB, free: 151.2 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001559/0.6707, allocations: 171.1 kB / 0.4991 GB, free: 151.2 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003635/0.6743, allocations: 1.288 MB / 0.5004 GB, free: 150.8 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008215/0.6752, allocations: 1.095 MB / 0.5014 GB, free: 150.1 MB / 394.7 MB Notification: Performance of SimCode: time 1.553e-06/0.6752, allocations: 0 / 0.5014 GB, free: 150.1 MB / 394.7 MB Notification: Performance of Templates: time 0.03177/0.707, allocations: 20.81 MB / 0.5217 GB, free: 149.3 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches