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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001041/0.001041, allocations: 194 kB / 17.38 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.191/1.191, allocations: 226.5 MB / 244.7 MB, free: 6.48 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007775/0.0007774, allocations: 95.97 kB / 296.7 MB, free: 6.691 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000244/0.0002441, allocations: 8 kB / 356.8 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1943/0.1945, allocations: 51.29 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.001864/0.1965, allocations: 2.144 MB / 410.3 MB, free: 25.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000848/0.1973, allocations: 0.6511 MB / 410.9 MB, free: 24.87 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001325/0.1975, allocations: 4 kB / 410.9 MB, free: 24.87 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001096/0.1976, allocations: 29.97 kB / 411 MB, free: 24.84 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001122/0.1977, allocations: 59.47 kB / 411 MB, free: 24.78 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002419/0.198, allocations: 61.58 kB / 411.1 MB, free: 24.72 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002143/0.1982, allocations: 254.8 kB / 411.3 MB, free: 24.47 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001483/0.1983, allocations: 78.86 kB / 411.4 MB, free: 24.39 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002026/0.1986, allocations: 95.62 kB / 411.5 MB, free: 24.3 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001078/0.1987, allocations: 103.5 kB / 411.6 MB, free: 24.2 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.636e-05/0.1987, allocations: 12.97 kB / 411.6 MB, free: 24.18 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.35e-05/0.1988, allocations: 27.98 kB / 411.6 MB, free: 24.16 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.712e-05/0.1988, allocations: 37.3 kB / 411.7 MB, free: 24.12 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.053e-05/0.1989, allocations: 133.2 kB / 411.8 MB, free: 23.98 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001592/0.1991, allocations: 204.7 kB / 412 MB, free: 23.79 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1991, allocations: 0 / 412 MB, free: 23.79 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1991, allocations: 4.625 kB / 412 MB, free: 23.78 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.18e-06/0.1991, allocations: 0 / 412 MB, free: 23.78 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.0005519/0.1997, allocations: 0.4906 MB / 412.5 MB, free: 23.25 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.355e-05/0.1997, allocations: 8.031 kB / 412.5 MB, free: 23.24 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.013e-05/0.1998, allocations: 62.72 kB / 412.6 MB, free: 23.17 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001313/0.1999, allocations: 36.56 kB / 412.6 MB, free: 23.13 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001676/0.2001, allocations: 239.9 kB / 412.8 MB, free: 22.86 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.275e-05/0.2001, allocations: 20.75 kB / 412.9 MB, free: 22.84 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.081e-05/0.2001, allocations: 20.38 kB / 412.9 MB, free: 22.82 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002908/0.2004, allocations: 191.4 kB / 413.1 MB, free: 22.62 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.2004, allocations: 0 / 413.1 MB, free: 22.62 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.93e-05/0.2005, allocations: 12 kB / 413.1 MB, free: 22.61 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.2005, allocations: 7.938 kB / 413.1 MB, free: 22.61 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002529/0.2007, allocations: 153.7 kB / 413.2 MB, free: 22.45 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.0009623/0.2017, allocations: 0.9336 MB / 414.2 MB, free: 21.41 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002418/0.202, allocations: 158.5 kB / 414.3 MB, free: 21.25 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001557/0.2021, allocations: 101.1 kB / 414.4 MB, free: 21.14 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.065e-05/0.2022, allocations: 7.906 kB / 414.4 MB, free: 21.14 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.328e-05/0.2022, allocations: 38.55 kB / 414.5 MB, free: 21.09 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.362e-06/0.2022, allocations: 0 / 414.5 MB, free: 21.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.001037/0.2032, allocations: 419.1 kB / 414.9 MB, free: 20.65 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.691e-05/0.2033, allocations: 59.41 kB / 414.9 MB, free: 20.58 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001081/0.2034, allocations: 175.1 kB / 415.1 MB, free: 20.4 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.31e-05/0.2034, allocations: 29.7 kB / 415.1 MB, free: 20.36 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.991e-05/0.2034, allocations: 148.1 kB / 415.3 MB, free: 20.21 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.97e-05/0.2035, allocations: 59.16 kB / 415.3 MB, free: 20.16 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.035e-06/0.2035, allocations: 3.938 kB / 415.3 MB, free: 20.15 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.237e-05/0.2035, allocations: 330.8 kB / 415.7 MB, free: 19.82 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.717e-05/0.2036, allocations: 51.97 kB / 415.7 MB, free: 19.77 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001015/0.2038, allocations: 77.06 kB / 415.8 MB, free: 19.69 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001954/0.204, allocations: 132.1 kB / 415.9 MB, free: 19.56 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.204, allocations: 0 / 415.9 MB, free: 19.56 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003868/0.2044, allocations: 233.3 kB / 416.1 MB, free: 19.32 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.119e-05/0.2044, allocations: 7.938 kB / 416.1 MB, free: 19.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.2044, allocations: 4 kB / 416.2 MB, free: 19.31 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001165/0.2056, allocations: 224.6 kB / 416.4 MB, free: 19.09 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001222/0.2057, allocations: 31.98 kB / 416.4 MB, free: 19.06 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003075/0.206, allocations: 0.6031 MB / 417 MB, free: 18.43 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001069/0.2061, allocations: 15.88 kB / 417 MB, free: 18.41 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.31e-05/0.2061, allocations: 12.05 kB / 417 MB, free: 18.4 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 8.772e-05/0.2062, allocations: 146.7 kB / 417.2 MB, free: 18.25 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.446e-05/0.2063, allocations: 15.81 kB / 417.2 MB, free: 18.23 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000415/0.2067, allocations: 228.2 kB / 417.4 MB, free: 18 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.2067, allocations: 0 / 417.4 MB, free: 18 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.2067, allocations: 11.92 kB / 417.4 MB, free: 17.99 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.2067, allocations: 4 kB / 417.4 MB, free: 17.99 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006516/0.2074, allocations: 0.5926 MB / 418 MB, free: 17.34 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.2074, allocations: 0 / 418 MB, free: 17.34 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001355/0.2075, allocations: 36.02 kB / 418.1 MB, free: 17.3 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009627/0.2085, allocations: 212.5 kB / 418.3 MB, free: 17.09 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.554e-05/0.2085, allocations: 11.94 kB / 418.3 MB, free: 17.08 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002843/0.2088, allocations: 0.6226 MB / 418.9 MB, free: 16.43 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.2088, allocations: 0 / 418.9 MB, free: 16.43 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006403/0.2095, allocations: 436.7 kB / 419.3 MB, free: 15.98 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.209e-05/0.2095, allocations: 96.88 kB / 419.4 MB, free: 15.87 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.508e-05/0.2096, allocations: 12 kB / 419.4 MB, free: 15.86 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001333/0.2097, allocations: 4 kB / 419.4 MB, free: 15.85 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.362e-05/0.2098, allocations: 15.98 kB / 419.5 MB, free: 15.84 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.125e-05/0.2098, allocations: 7.984 kB / 419.5 MB, free: 15.83 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.782e-05/0.2098, allocations: 135.3 kB / 419.6 MB, free: 15.7 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2099, allocations: 0 / 419.6 MB, free: 15.7 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000259/0.2101, allocations: 55.84 kB / 419.6 MB, free: 15.64 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.0008558/0.211, allocations: 0.97 MB / 420.6 MB, free: 14.64 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003199/0.2113, allocations: 147.9 kB / 420.8 MB, free: 14.5 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.2113, allocations: 0 / 420.8 MB, free: 14.5 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001594/0.2115, allocations: 91.8 kB / 420.9 MB, free: 14.41 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003285/0.2118, allocations: 27.98 kB / 420.9 MB, free: 14.38 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001595/0.2134, allocations: 1.386 MB / 422.3 MB, free: 12.94 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001308/0.2136, allocations: 0.7363 MB / 423 MB, free: 12.18 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.143e-05/0.2137, allocations: 63.41 kB / 423.1 MB, free: 12.12 MB / 298.7 MB Notification: Performance of SimCode: time 3.5e-07/0.2137, allocations: 0 / 423.1 MB, free: 12.12 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.786/2.999, allocations: 3.819 MB / 426.9 MB, free: 8.293 MB / 298.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_HeatingRectifier_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_HeatingRectifier.fmu > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat","/var/lib/jenkins1/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