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.00274/0.002739, allocations: 186.7 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.556/3.556, allocations: 205.4 MB / 222.5 MB, free: 13.79 MB / 186.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001836/0.001836, allocations: 98.8 kB / 270.9 MB, free: 13.3 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.0006252/0.0006253, allocations: 15.98 kB / 327 MB, free: 15.11 MB / 234.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.16/0.1607, allocations: 47.57 MB / 374.5 MB, free: 15.45 MB / 282.8 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.004941/0.1657, allocations: 1.979 MB / 376.5 MB, free: 13.45 MB / 282.8 MB Notification: Performance of NFInst.instExpressions: time 0.002321/0.1681, allocations: 0.6599 MB / 377.2 MB, free: 12.79 MB / 282.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002594/0.1684, allocations: 4 kB / 377.2 MB, free: 12.79 MB / 282.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0001066/0.1685, allocations: 23.78 kB / 377.2 MB, free: 12.76 MB / 282.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0004254/0.169, allocations: 79.75 kB / 377.3 MB, free: 12.68 MB / 282.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004675/0.1694, allocations: 59.86 kB / 377.3 MB, free: 12.62 MB / 282.8 MB Notification: Performance of NFFlatten.flatten: time 0.0005874/0.1701, allocations: 183.6 kB / 377.5 MB, free: 12.45 MB / 282.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002941/0.1704, allocations: 64.8 kB / 377.6 MB, free: 12.38 MB / 282.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003198/0.1707, allocations: 87.7 kB / 377.7 MB, free: 12.3 MB / 282.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002877/0.171, allocations: 103.5 kB / 377.8 MB, free: 12.2 MB / 282.8 MB Notification: Performance of NFPackage.collectConstants: time 5.644e-05/0.1711, allocations: 12 kB / 377.8 MB, free: 12.18 MB / 282.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001578/0.1713, allocations: 20 kB / 377.8 MB, free: 12.16 MB / 282.8 MB Notification: Performance of NFScalarize.scalarize: time 8.2e-05/0.1714, allocations: 39.83 kB / 377.8 MB, free: 12.12 MB / 282.8 MB Notification: Performance of NFVerifyModel.verify: time 0.0001136/0.1715, allocations: 73.56 kB / 377.9 MB, free: 12.05 MB / 282.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0004845/0.172, allocations: 195.7 kB / 378.1 MB, free: 11.86 MB / 282.8 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.172, allocations: 3.938 kB / 378.1 MB, free: 11.85 MB / 282.8 MB Notification: Performance of FrontEnd: time 2.655e-06/0.172, allocations: 0 / 378.1 MB, free: 11.85 MB / 282.8 MB Notification: Performance of Transformations before backend: time 7.945e-06/0.1721, allocations: 0 / 378.1 MB, free: 11.85 MB / 282.8 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.001491/0.1736, allocations: 0.4911 MB / 378.6 MB, free: 11.31 MB / 282.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.558e-05/0.1737, allocations: 12.03 kB / 378.6 MB, free: 11.3 MB / 282.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001267/0.1738, allocations: 23.72 kB / 378.6 MB, free: 11.27 MB / 282.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005756/0.1744, allocations: 235.3 kB / 378.9 MB, free: 11 MB / 282.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.24e-05/0.1745, allocations: 20.38 kB / 378.9 MB, free: 10.98 MB / 282.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.542e-05/0.1746, allocations: 20 kB / 378.9 MB, free: 10.96 MB / 282.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008408/0.1754, allocations: 183.3 kB / 379.1 MB, free: 10.78 MB / 282.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.729e-05/0.1755, allocations: 4 kB / 379.1 MB, free: 10.77 MB / 282.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.408e-05/0.1756, allocations: 12 kB / 379.1 MB, free: 10.76 MB / 282.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.545e-05/0.1756, allocations: 4 kB / 379.1 MB, free: 10.76 MB / 282.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007833/0.1764, allocations: 157.6 kB / 379.2 MB, free: 10.61 MB / 282.8 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.003019/0.1794, allocations: 0.9414 MB / 380.2 MB, free: 9.559 MB / 282.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007107/0.1802, allocations: 150.6 kB / 380.3 MB, free: 9.402 MB / 282.8 MB Notification: Performance of preOpt evalFunc (simulation): time 4.684e-05/0.1802, allocations: 0 / 380.3 MB, free: 9.402 MB / 282.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.137e-05/0.1803, allocations: 42.5 kB / 380.4 MB, free: 9.352 MB / 282.8 MB Notification: Performance of pre-optimization done (n=17): time 2.905e-06/0.1803, allocations: 0 / 380.4 MB, free: 9.352 MB / 282.8 MB Notification: Performance of matching and sorting (n=17): time 0.002911/0.1833, allocations: 427.4 kB / 380.8 MB, free: 8.906 MB / 282.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.397e-05/0.1834, allocations: 51.41 kB / 380.8 MB, free: 8.844 MB / 282.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000345/0.1837, allocations: 167.6 kB / 381 MB, free: 8.672 MB / 282.8 MB Notification: Performance of collectPreVariables (initialization): time 5.233e-05/0.1838, allocations: 33.7 kB / 381 MB, free: 8.633 MB / 282.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001992/0.184, allocations: 202.6 kB / 381.2 MB, free: 8.434 MB / 282.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.000106/0.1842, allocations: 63.09 kB / 381.3 MB, free: 8.371 MB / 282.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.458e-05/0.1842, allocations: 8 kB / 381.3 MB, free: 8.363 MB / 282.8 MB Notification: Performance of setup shared object (initialization): time 0.0001812/0.1844, allocations: 310.8 kB / 381.6 MB, free: 8.051 MB / 282.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003024/0.1847, allocations: 56.34 kB / 381.7 MB, free: 7.996 MB / 282.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003192/0.1851, allocations: 70.44 kB / 381.7 MB, free: 7.922 MB / 282.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000323/0.1854, allocations: 63.95 kB / 381.8 MB, free: 7.859 MB / 282.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/0.1854, allocations: 0 / 381.8 MB, free: 7.859 MB / 282.8 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.001159/0.1866, allocations: 222.2 kB / 382 MB, free: 7.633 MB / 282.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.138e-05/0.1867, allocations: 4 kB / 382 MB, free: 7.629 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.625e-05/0.1867, allocations: 3.984 kB / 382 MB, free: 7.625 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003091/0.1898, allocations: 240.5 kB / 382.3 MB, free: 7.387 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004511/0.1944, allocations: 31.98 kB / 382.3 MB, free: 7.355 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00104/0.1955, allocations: 0.6109 MB / 382.9 MB, free: 6.719 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003141/0.1958, allocations: 19.83 kB / 382.9 MB, free: 6.699 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.055e-05/0.1959, allocations: 4 kB / 382.9 MB, free: 6.695 MB / 282.8 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.0002606/0.1962, allocations: 129.8 kB / 383.1 MB, free: 6.559 MB / 282.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.883e-05/0.1963, allocations: 19.75 kB / 383.1 MB, free: 6.539 MB / 282.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001017/0.1973, allocations: 244.3 kB / 383.3 MB, free: 6.289 MB / 282.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.805e-06/0.1973, allocations: 0 / 383.3 MB, free: 6.289 MB / 282.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/0.1974, allocations: 0 / 383.3 MB, free: 6.289 MB / 282.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.068e-05/0.1974, allocations: 3.953 kB / 383.3 MB, free: 6.285 MB / 282.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004914/0.2023, allocations: 297.4 kB / 383.6 MB, free: 5.945 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.568e-06/0.2024, allocations: 0 / 383.6 MB, free: 5.945 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004303/0.2028, allocations: 23.98 kB / 383.6 MB, free: 5.922 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002644/0.2055, allocations: 212.6 kB / 383.8 MB, free: 5.711 MB / 282.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.397e-05/0.2056, allocations: 4 kB / 383.8 MB, free: 5.707 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005219/0.2109, allocations: 0.6226 MB / 384.5 MB, free: 5.059 MB / 282.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.037e-06/0.2109, allocations: 3.938 kB / 384.5 MB, free: 5.055 MB / 282.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001403/0.2123, allocations: 388.5 kB / 384.8 MB, free: 4.656 MB / 282.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001396/0.2125, allocations: 96.94 kB / 384.9 MB, free: 4.543 MB / 282.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.442e-05/0.2126, allocations: 4 kB / 384.9 MB, free: 4.539 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003797/0.213, allocations: 15.95 kB / 385 MB, free: 4.523 MB / 282.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.571e-05/0.2131, allocations: 15.98 kB / 385 MB, free: 4.508 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.221e-05/0.2132, allocations: 4 kB / 385 MB, free: 4.504 MB / 282.8 MB Notification: Performance of sorting global known variables: time 0.0002366/0.2134, allocations: 127.5 kB / 385.1 MB, free: 4.379 MB / 282.8 MB Notification: Performance of sort global known variables: time 3.387e-06/0.2134, allocations: 4 kB / 385.1 MB, free: 4.375 MB / 282.8 MB Notification: Performance of remove unused functions: time 0.00079/0.2142, allocations: 59.78 kB / 385.2 MB, free: 4.316 MB / 282.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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.0002925/0.2146, allocations: 111.2 kB / 385.3 MB, free: 4.199 MB / 282.8 MB Notification: Performance of simCode: created initialization part: time 0.0009345/0.2155, allocations: 152.3 kB / 385.4 MB, free: 4.051 MB / 282.8 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.2156, allocations: 3.938 kB / 385.4 MB, free: 4.047 MB / 282.8 MB Notification: Performance of simCode: created simulation system equations: time 0.000476/0.216, allocations: 100.2 kB / 385.5 MB, free: 3.949 MB / 282.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006074/0.2167, allocations: 20.03 kB / 385.5 MB, free: 3.93 MB / 282.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006605/0.2233, allocations: 0.7084 MB / 386.3 MB, free: 3.191 MB / 282.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005866/0.224, allocations: 0.7402 MB / 387 MB, free: 2.426 MB / 282.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001057/0.2241, allocations: 19.38 kB / 387 MB, free: 2.406 MB / 282.8 MB Notification: Performance of SimCode: time 1.373e-06/0.2241, allocations: 4 kB / 387 MB, free: 2.402 MB / 282.8 MB Notification: Performance of Templates: time 0.4115/0.6357, allocations: 2.968 MB / 390 MB, free: 20.41 MB / 282.8 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/jenkins1/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