Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001094/0.001094, allocations: 72.08 kB / 21.69 MB, free: 2.859 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001112/0.001112, allocations: 144.4 kB / 24.97 MB, free: 8.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9436/0.9436, allocations: 173.4 MB / 201.5 MB, free: 9.34 MB / 186.7 MB " [Timeout remaining time 179] 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingRectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Capacitor1.v|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier") translateModel(Modelica.Electrical.Analog.Examples.HeatingRectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Capacitor1.v|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.352e-06/1.352e-06, allocations: 0 / 268.1 MB, free: 6.73 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.575e-05/1.71e-05, allocations: 2.312 kB / 268.1 MB, free: 6.727 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.002574/0.002591, allocations: 2.54 MB / 270.6 MB, free: 4.168 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008872/0.003478, allocations: 0.6386 MB / 271.3 MB, free: 3.523 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.582e-05/0.003574, allocations: 4 kB / 271.3 MB, free: 3.52 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001256/0.003699, allocations: 31.64 kB / 271.3 MB, free: 3.488 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 8.765e-05/0.003787, allocations: 83.27 kB / 271.4 MB, free: 3.406 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002525/0.004039, allocations: 95.62 kB / 271.5 MB, free: 3.312 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002173/0.004257, allocations: 286.6 kB / 271.7 MB, free: 3.031 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001346/0.004391, allocations: 60.53 kB / 271.8 MB, free: 2.969 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001441/0.004535, allocations: 159.6 kB / 272 MB, free: 2.812 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000111/0.004646, allocations: 91.77 kB / 272.1 MB, free: 2.723 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.703e-05/0.004673, allocations: 20 kB / 272.1 MB, free: 2.703 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.4e-05/0.004737, allocations: 35.97 kB / 272.1 MB, free: 2.668 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.867e-05/0.004776, allocations: 55.77 kB / 272.2 MB, free: 2.613 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.548e-05/0.004842, allocations: 83.83 kB / 272.2 MB, free: 2.531 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000216/0.005058, allocations: 207.2 kB / 272.4 MB, free: 2.328 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.064e-06/0.00506, allocations: 0 / 272.4 MB, free: 2.328 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.51e-07/0.00506, allocations: 0 / 272.4 MB, free: 2.328 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.258e-06/0.005065, allocations: 0 / 272.4 MB, free: 2.328 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0007768/0.005841, allocations: 0.5546 MB / 273 MB, free: 1.738 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.201e-05/0.005873, allocations: 8.922 kB / 273 MB, free: 1.73 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.567e-05/0.005939, allocations: 48.8 kB / 273.1 MB, free: 1.684 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002071/0.006146, allocations: 184.2 kB / 273.2 MB, free: 1.477 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.77e-05/0.006164, allocations: 16.88 kB / 273.3 MB, free: 1.457 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.229e-05/0.006196, allocations: 24.31 kB / 273.3 MB, free: 1.434 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002594/0.006456, allocations: 212.8 kB / 273.5 MB, free: 1.203 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.006469, allocations: 192 / 273.5 MB, free: 1.203 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.578e-05/0.006494, allocations: 12.38 kB / 273.5 MB, free: 1.191 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.152e-05/0.006506, allocations: 7.938 kB / 273.5 MB, free: 1.184 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001916/0.006697, allocations: 78.94 kB / 273.6 MB, free: 1.109 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007924/0.00749, allocations: 0.664 MB / 274.2 MB, free: 404 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001894/0.007679, allocations: 127 kB / 274.4 MB, free: 264 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001131/0.007792, allocations: 63.59 kB / 274.4 MB, free: 196 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.935e-05/0.007812, allocations: 8 kB / 274.4 MB, free: 188 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.392e-05/0.007836, allocations: 41.39 kB / 274.5 MB, free: 136 kB / 250.7 MB Notification: Performance of pre-optimization done (n=17): time 1.282e-06/0.007837, allocations: 0 / 274.5 MB, free: 136 kB / 250.7 MB Notification: Performance of matching and sorting (n=17): time 0.0006651/0.008502, allocations: 280.2 kB / 274.8 MB, free: 15.85 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.528e-05/0.008527, allocations: 59.34 kB / 274.8 MB, free: 15.78 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001174/0.008645, allocations: 221.9 kB / 275 MB, free: 15.55 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.481e-05/0.00866, allocations: 29.7 kB / 275.1 MB, free: 15.51 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.747e-05/0.008737, allocations: 199.1 kB / 275.3 MB, free: 15.31 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.677e-05/0.008774, allocations: 63.47 kB / 275.3 MB, free: 15.25 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.541e-05/0.008839, allocations: 47.36 kB / 275.4 MB, free: 15.2 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.008978, allocations: 0.4923 MB / 275.9 MB, free: 14.69 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.367e-05/0.009052, allocations: 27.92 kB / 275.9 MB, free: 14.66 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.658e-05/0.009119, allocations: 62.28 kB / 275.9 MB, free: 14.6 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001143/0.009233, allocations: 87.31 kB / 276 MB, free: 14.5 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.009235, allocations: 0 / 276 MB, free: 14.5 MB / 266.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002267/0.009462, allocations: 175.9 kB / 276.2 MB, free: 14.32 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.122e-05/0.009473, allocations: 7.938 kB / 276.2 MB, free: 14.32 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-06/0.009477, allocations: 0 / 276.2 MB, free: 14.32 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008596/0.01034, allocations: 175.5 kB / 276.4 MB, free: 14.14 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.486e-05/0.01041, allocations: 27.98 kB / 276.4 MB, free: 14.11 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003513/0.01076, allocations: 0.8468 MB / 277.2 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.084e-05/0.01081, allocations: 19.88 kB / 277.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.488e-06/0.01082, allocations: 4 kB / 277.3 MB, free: 13.21 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 7.994e-05/0.0109, allocations: 164.6 kB / 277.4 MB, free: 13.04 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.966e-05/0.01093, allocations: 15.91 kB / 277.4 MB, free: 13.02 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002462/0.01118, allocations: 191 kB / 277.6 MB, free: 12.83 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.01118, allocations: 4 kB / 277.6 MB, free: 12.82 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.267e-06/0.01119, allocations: 0 / 277.6 MB, free: 12.82 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.01119, allocations: 0 / 277.6 MB, free: 12.82 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004592/0.01165, allocations: 0.5082 MB / 278.1 MB, free: 12.27 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.01165, allocations: 0 / 278.1 MB, free: 12.27 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.493e-05/0.01174, allocations: 31.91 kB / 278.2 MB, free: 12.23 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004455/0.01218, allocations: 159.5 kB / 278.3 MB, free: 12.07 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.343e-05/0.01219, allocations: 3.984 kB / 278.3 MB, free: 12.07 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003141/0.01251, allocations: 0.8663 MB / 279.2 MB, free: 11.17 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.01251, allocations: 4 kB / 279.2 MB, free: 11.17 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003922/0.0129, allocations: 402.8 kB / 279.6 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.687e-05/0.01292, allocations: 11.91 kB / 279.6 MB, free: 10.73 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.233e-05/0.01294, allocations: 4 kB / 279.6 MB, free: 10.73 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.756e-05/0.01301, allocations: 20.03 kB / 279.6 MB, free: 10.71 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.529e-05/0.01304, allocations: 15.92 kB / 279.7 MB, free: 10.7 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.155e-06/0.01305, allocations: 4 kB / 279.7 MB, free: 10.69 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.902e-05/0.01312, allocations: 164.2 kB / 279.8 MB, free: 10.53 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01312, allocations: 0 / 279.8 MB, free: 10.53 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001901/0.01331, allocations: 63.77 kB / 279.9 MB, free: 10.47 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Capacitor1.v,HeatCapacitor1.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001068/0.01342, allocations: 103.2 kB / 280 MB, free: 10.36 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002211/0.01364, allocations: 120.1 kB / 280.1 MB, free: 10.23 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.01364, allocations: 4.062 kB / 280.1 MB, free: 10.23 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.634e-05/0.01373, allocations: 75.2 kB / 280.2 MB, free: 10.16 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002191/0.01395, allocations: 20 kB / 280.2 MB, free: 10.14 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008088/0.01476, allocations: 499.9 kB / 280.7 MB, free: 9.613 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.261e-05/0.0148, allocations: 80.2 kB / 280.8 MB, free: 9.516 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.714e-05/0.01484, allocations: 13.5 kB / 280.8 MB, free: 9.504 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.501e-05/0.01486, allocations: 12.5 kB / 280.8 MB, free: 9.488 MB / 266.7 MB Notification: Performance of SimCode: time 6.62e-07/0.01486, allocations: 0 / 280.8 MB, free: 9.488 MB / 266.7 MB Notification: Performance of Templates: time 0.003928/0.01879, allocations: 2.261 MB / 283 MB, free: 7.262 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingRectifier/HeatingRectifier.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.6550529289525002]