Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00139/0.00139, allocations: 193.5 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.326/1.326, allocations: 226.6 MB / 244.3 MB, free: 6.559 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006995/0.0006996, allocations: 93.33 kB / 296.4 MB, free: 6.789 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002555/0.0002555, allocations: 11.98 kB / 356.2 MB, free: 10.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2057/0.2059, allocations: 51.29 MB / 407.5 MB, free: 27.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.002015/0.208, allocations: 2.135 MB / 409.6 MB, free: 25.65 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000834/0.2089, allocations: 0.6522 MB / 410.3 MB, free: 25 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000106/0.209, allocations: 4 kB / 410.3 MB, free: 24.99 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001093/0.2091, allocations: 27.77 kB / 410.3 MB, free: 24.96 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.105e-05/0.2092, allocations: 65.95 kB / 410.4 MB, free: 24.9 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002231/0.2094, allocations: 59.94 kB / 410.4 MB, free: 24.84 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001888/0.2096, allocations: 262.7 kB / 410.7 MB, free: 24.59 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001587/0.2098, allocations: 58.69 kB / 410.7 MB, free: 24.52 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001507/0.21, allocations: 101.8 kB / 410.8 MB, free: 24.43 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001103/0.2101, allocations: 95.55 kB / 410.9 MB, free: 24.33 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.714e-05/0.2101, allocations: 12 kB / 410.9 MB, free: 24.32 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.898e-05/0.2102, allocations: 31.98 kB / 411 MB, free: 24.29 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.421e-05/0.2102, allocations: 39.83 kB / 411 MB, free: 24.25 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.032e-05/0.2103, allocations: 67.23 kB / 411.1 MB, free: 24.18 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001679/0.2104, allocations: 208.4 kB / 411.3 MB, free: 23.98 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.2105, allocations: 0 / 411.3 MB, free: 23.98 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2105, allocations: 0 / 411.3 MB, free: 23.98 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.818e-06/0.2105, allocations: 0 / 411.3 MB, free: 23.98 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.0006455/0.2111, allocations: 0.4943 MB / 411.8 MB, free: 23.44 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.204e-05/0.2112, allocations: 8.031 kB / 411.8 MB, free: 23.43 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001511/0.2113, allocations: 43.62 kB / 411.8 MB, free: 23.39 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001886/0.2115, allocations: 238.6 kB / 412.1 MB, free: 23.11 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.23e-05/0.2115, allocations: 12.44 kB / 412.1 MB, free: 23.1 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.594e-05/0.2116, allocations: 23.95 kB / 412.1 MB, free: 23.08 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003133/0.2119, allocations: 183.3 kB / 412.3 MB, free: 22.89 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.2119, allocations: 0 / 412.3 MB, free: 22.89 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.369e-05/0.212, allocations: 12 kB / 412.3 MB, free: 22.88 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.212, allocations: 8 kB / 412.3 MB, free: 22.88 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002712/0.2123, allocations: 157.6 kB / 412.5 MB, free: 22.72 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.001052/0.2133, allocations: 0.9413 MB / 413.4 MB, free: 21.67 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002453/0.2136, allocations: 154.6 kB / 413.5 MB, free: 21.51 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001626/0.2137, allocations: 92.83 kB / 413.6 MB, free: 21.41 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.191e-05/0.2138, allocations: 4 kB / 413.6 MB, free: 21.41 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.026e-05/0.2138, allocations: 46.53 kB / 413.7 MB, free: 21.36 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.312e-06/0.2138, allocations: 0 / 413.7 MB, free: 21.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.00114/0.2149, allocations: 430.2 kB / 414.1 MB, free: 20.91 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.519e-05/0.215, allocations: 55.34 kB / 414.2 MB, free: 20.84 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001205/0.2151, allocations: 179.2 kB / 414.3 MB, free: 20.66 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.597e-05/0.2151, allocations: 29.7 kB / 414.4 MB, free: 20.62 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.669e-05/0.2152, allocations: 148.1 kB / 414.5 MB, free: 20.47 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.395e-05/0.2152, allocations: 63.09 kB / 414.6 MB, free: 20.41 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.566e-06/0.2153, allocations: 4 kB / 414.6 MB, free: 20.41 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.663e-05/0.2153, allocations: 326.8 kB / 414.9 MB, free: 20.08 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001/0.2154, allocations: 52.34 kB / 414.9 MB, free: 20.03 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001067/0.2155, allocations: 77.44 kB / 415 MB, free: 19.95 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001159/0.2157, allocations: 62.19 kB / 415.1 MB, free: 19.89 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.2157, allocations: 0 / 415.1 MB, free: 19.89 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004076/0.2161, allocations: 234.2 kB / 415.3 MB, free: 19.65 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/0.2161, allocations: 8.031 kB / 415.3 MB, free: 19.64 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.2161, allocations: 0 / 415.3 MB, free: 19.64 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001296/0.2174, allocations: 216.6 kB / 415.5 MB, free: 19.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001308/0.2176, allocations: 35.91 kB / 415.6 MB, free: 19.39 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003266/0.2179, allocations: 0.6109 MB / 416.2 MB, free: 18.76 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001227/0.218, allocations: 19.88 kB / 416.2 MB, free: 18.74 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.279e-05/0.2181, allocations: 4 kB / 416.2 MB, free: 18.73 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.0001046/0.2182, allocations: 133.8 kB / 416.3 MB, free: 18.59 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.607e-05/0.2182, allocations: 19.88 kB / 416.3 MB, free: 18.57 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003814/0.2186, allocations: 235.4 kB / 416.6 MB, free: 18.34 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.2186, allocations: 4 kB / 416.6 MB, free: 18.34 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.2186, allocations: 0 / 416.6 MB, free: 18.34 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/0.2186, allocations: 3.953 kB / 416.6 MB, free: 18.33 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007198/0.2194, allocations: 0.5975 MB / 417.2 MB, free: 17.67 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.2194, allocations: 3.984 kB / 417.2 MB, free: 17.67 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001386/0.2195, allocations: 23.98 kB / 417.2 MB, free: 17.64 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001051/0.2206, allocations: 224.5 kB / 417.4 MB, free: 17.42 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.482e-05/0.2206, allocations: 7.938 kB / 417.4 MB, free: 17.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003/0.2209, allocations: 0.6264 MB / 418.1 MB, free: 16.76 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.2209, allocations: 0 / 418.1 MB, free: 16.76 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006805/0.2216, allocations: 425.2 kB / 418.5 MB, free: 16.32 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.673e-05/0.2217, allocations: 101 kB / 418.6 MB, free: 16.21 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.553e-05/0.2217, allocations: 3.953 kB / 418.6 MB, free: 16.2 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001441/0.2218, allocations: 15.98 kB / 418.6 MB, free: 16.19 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.498e-05/0.2219, allocations: 11.89 kB / 418.6 MB, free: 16.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.1e-05/0.2219, allocations: 8 kB / 418.6 MB, free: 16.17 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.988e-05/0.222, allocations: 127.2 kB / 418.7 MB, free: 16.04 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.222, allocations: 0 / 418.7 MB, free: 16.04 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000262/0.2222, allocations: 63.83 kB / 418.8 MB, free: 15.98 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.0001446/0.2224, allocations: 115.2 kB / 418.9 MB, free: 15.86 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003345/0.2227, allocations: 143.9 kB / 419.1 MB, free: 15.71 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.2227, allocations: 0 / 419.1 MB, free: 15.71 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001563/0.2229, allocations: 94.83 kB / 419.1 MB, free: 15.62 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003391/0.2233, allocations: 28.17 kB / 419.2 MB, free: 15.6 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007713/0.224, allocations: 0.7036 MB / 419.9 MB, free: 14.87 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001362/0.2242, allocations: 0.7402 MB / 420.6 MB, free: 14.1 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.108e-05/0.2242, allocations: 11.44 kB / 420.6 MB, free: 14.09 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2242, allocations: 4 kB / 420.6 MB, free: 14.09 MB / 298.7 MB Notification: Performance of Templates: time 0.003546/0.2278, allocations: 3.08 MB / 423.7 MB, free: 11.02 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches