Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.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.Analog.Examples.HeatingRectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Capacitor1.v|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier") translateModel(Modelica.Electrical.Analog.Examples.HeatingRectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Capacitor1.v|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001659/0.001659, allocations: 180 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.544/1.544, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.0007899/0.0007899, allocations: 83.77 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003034/0.0003035, allocations: 12 kB / 327 MB, free: 208 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2238/0.2241, allocations: 47.57 MB / 374.6 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.002668/0.2268, allocations: 2.081 MB / 376.6 MB, free: 43.79 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001269/0.2281, allocations: 0.6452 MB / 377.3 MB, free: 43.27 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002679/0.2284, allocations: 3.344 kB / 377.3 MB, free: 43.27 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001566/0.2286, allocations: 23.03 kB / 377.3 MB, free: 43.25 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000178/0.2288, allocations: 59.34 kB / 377.4 MB, free: 43.2 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003156/0.2291, allocations: 57.25 kB / 377.4 MB, free: 43.16 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003584/0.2295, allocations: 252 kB / 377.7 MB, free: 43.01 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001918/0.2297, allocations: 67.88 kB / 377.7 MB, free: 42.97 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002261/0.2299, allocations: 90.61 kB / 377.8 MB, free: 42.93 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002032/0.2301, allocations: 105.8 kB / 377.9 MB, free: 42.86 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.227e-05/0.2302, allocations: 10.62 kB / 377.9 MB, free: 42.86 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000125/0.2303, allocations: 30.42 kB / 378 MB, free: 42.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.884e-05/0.2304, allocations: 34.72 kB / 378 MB, free: 42.82 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.749e-05/0.2304, allocations: 63.52 kB / 378.1 MB, free: 42.77 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000247/0.2307, allocations: 203.2 kB / 378.3 MB, free: 42.62 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/0.2307, allocations: 0 / 378.3 MB, free: 42.62 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.324e-06/0.2307, allocations: 1.438 kB / 378.3 MB, free: 42.62 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.036e-05/0.2307, allocations: 3.938 kB / 378.3 MB, free: 42.62 MB / 298.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.0007651/0.2315, allocations: 0.4895 MB / 378.8 MB, free: 42.15 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.2316, allocations: 9 kB / 378.8 MB, free: 42.15 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.514e-05/0.2317, allocations: 25.31 kB / 378.8 MB, free: 42.14 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002545/0.2319, allocations: 229.8 kB / 379 MB, free: 41.89 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.02e-05/0.2319, allocations: 21.23 kB / 379 MB, free: 41.88 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.287e-05/0.232, allocations: 16.44 kB / 379 MB, free: 41.88 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003799/0.2324, allocations: 194.1 kB / 379.2 MB, free: 41.75 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.81e-05/0.2324, allocations: 3.906 kB / 379.2 MB, free: 41.75 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.682e-05/0.2324, allocations: 5.5 kB / 379.2 MB, free: 41.75 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.032e-05/0.2325, allocations: 9.531 kB / 379.3 MB, free: 41.74 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003387/0.2328, allocations: 160.3 kB / 379.4 MB, free: 41.67 MB / 298.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001387/0.2342, allocations: 0.9385 MB / 380.3 MB, free: 40.8 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003063/0.2345, allocations: 146.5 kB / 380.5 MB, free: 40.72 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002032/0.2347, allocations: 102.3 kB / 380.6 MB, free: 40.67 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.922e-05/0.2348, allocations: 5.25 kB / 380.6 MB, free: 40.67 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.958e-05/0.2348, allocations: 37.11 kB / 380.6 MB, free: 40.62 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.883e-06/0.2348, allocations: 0 / 380.6 MB, free: 40.62 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.001366/0.2362, allocations: 432 kB / 381.1 MB, free: 40.35 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.486e-05/0.2362, allocations: 57.58 kB / 381.1 MB, free: 40.28 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001443/0.2364, allocations: 169.8 kB / 381.3 MB, free: 40.15 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.168e-05/0.2364, allocations: 27.7 kB / 381.3 MB, free: 40.12 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.388e-05/0.2365, allocations: 142 kB / 381.4 MB, free: 39.98 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.439e-05/0.2365, allocations: 65.77 kB / 381.5 MB, free: 39.93 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.488e-06/0.2366, allocations: 4.969 kB / 381.5 MB, free: 39.92 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.785e-05/0.2366, allocations: 331.3 kB / 381.8 MB, free: 39.59 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001254/0.2367, allocations: 46.92 kB / 381.9 MB, free: 39.57 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001227/0.2369, allocations: 71.91 kB / 382 MB, free: 39.53 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001332/0.237, allocations: 64.86 kB / 382 MB, free: 39.5 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.237, allocations: 0 / 382 MB, free: 39.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0005114/0.2376, allocations: 229.1 kB / 382.2 MB, free: 39.37 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.2376, allocations: 5.438 kB / 382.2 MB, free: 39.37 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.2376, allocations: 0 / 382.2 MB, free: 39.37 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001471/0.2391, allocations: 228 kB / 382.5 MB, free: 39.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001541/0.2392, allocations: 30.7 kB / 382.5 MB, free: 39.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003982/0.2396, allocations: 0.6145 MB / 383.1 MB, free: 38.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001592/0.2398, allocations: 25.75 kB / 383.1 MB, free: 38.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.884e-05/0.2398, allocations: 8.109 kB / 383.1 MB, free: 38.66 MB / 298.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 (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: 0 * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001275/0.24, allocations: 129.2 kB / 383.3 MB, free: 38.54 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.253e-05/0.24, allocations: 15.69 kB / 383.3 MB, free: 38.53 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004936/0.2405, allocations: 228.8 kB / 383.5 MB, free: 38.38 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.2406, allocations: 6.781 kB / 383.5 MB, free: 38.38 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.2406, allocations: 7.891 kB / 383.5 MB, free: 38.37 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.042e-06/0.2406, allocations: 3.984 kB / 383.5 MB, free: 38.37 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008555/0.2414, allocations: 0.5867 MB / 384.1 MB, free: 37.87 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.2415, allocations: 5.188 kB / 384.1 MB, free: 37.86 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001565/0.2416, allocations: 26.8 kB / 384.1 MB, free: 37.86 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001144/0.2428, allocations: 214 kB / 384.4 MB, free: 37.77 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.848e-05/0.2428, allocations: 6.109 kB / 384.4 MB, free: 37.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003439/0.2432, allocations: 0.6218 MB / 385 MB, free: 37.18 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.2432, allocations: 5.094 kB / 385 MB, free: 37.18 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007954/0.244, allocations: 434.6 kB / 385.4 MB, free: 36.88 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.092e-05/0.244, allocations: 94.61 kB / 385.5 MB, free: 36.78 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.924e-05/0.2441, allocations: 4.922 kB / 385.5 MB, free: 36.77 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001604/0.2442, allocations: 20.2 kB / 385.5 MB, free: 36.76 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.391e-05/0.2443, allocations: 12.73 kB / 385.5 MB, free: 36.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.478e-05/0.2443, allocations: 12.61 kB / 385.6 MB, free: 36.75 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.476e-05/0.2444, allocations: 128.9 kB / 385.7 MB, free: 36.64 MB / 298.7 MB Notification: Performance of sort global known variables: time 9.51e-07/0.2444, allocations: 1.031 kB / 385.7 MB, free: 36.64 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003365/0.2448, allocations: 62.38 kB / 385.7 MB, free: 36.62 MB / 298.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 (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: 0 * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001807/0.2449, allocations: 100.4 kB / 385.8 MB, free: 36.54 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005102/0.2455, allocations: 155.7 kB / 386 MB, free: 36.47 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.2455, allocations: 0 / 386 MB, free: 36.47 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002081/0.2457, allocations: 87.98 kB / 386.1 MB, free: 36.44 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00039/0.2461, allocations: 30.2 kB / 386.1 MB, free: 36.42 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001025/0.2471, allocations: 0.7033 MB / 386.8 MB, free: 35.86 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001817/0.2473, allocations: 0.7347 MB / 387.5 MB, free: 35.14 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.021e-05/0.2474, allocations: 13.56 kB / 387.6 MB, free: 35.13 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2474, allocations: 5.094 kB / 387.6 MB, free: 35.13 MB / 298.7 MB Notification: Performance of Templates: time 0.004632/0.252, allocations: 3.023 MB / 390.6 MB, free: 32.27 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/HeatingRectifier/HeatingRectifier.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches