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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.00104/0.00104, allocations: 175.8 kB / 16.72 MB, free: 5.078 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.294/1.294, allocations: 205.4 MB / 222.9 MB, free: 9.031 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.0007794/0.0007795, allocations: 104.9 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003481/0.0003482, allocations: 8 kB / 327.6 MB, free: 15.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.223/0.2234, allocations: 47.58 MB / 375.2 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.00215/0.2256, allocations: 2.084 MB / 377.3 MB, free: 43.79 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00093/0.2265, allocations: 0.6492 MB / 377.9 MB, free: 43.27 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001083/0.2267, allocations: 2.688 kB / 377.9 MB, free: 43.27 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001147/0.2268, allocations: 27.89 kB / 377.9 MB, free: 43.24 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.285e-05/0.2269, allocations: 54.8 kB / 378 MB, free: 43.2 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002323/0.2271, allocations: 61.64 kB / 378.1 MB, free: 43.14 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002585/0.2274, allocations: 252.9 kB / 378.3 MB, free: 43 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001637/0.2276, allocations: 70.64 kB / 378.4 MB, free: 42.96 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001334/0.2277, allocations: 93.8 kB / 378.5 MB, free: 42.91 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001261/0.2278, allocations: 101.2 kB / 378.6 MB, free: 42.84 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.843e-05/0.2279, allocations: 11.38 kB / 378.6 MB, free: 42.84 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.992e-05/0.228, allocations: 27.64 kB / 378.6 MB, free: 42.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.078e-05/0.228, allocations: 41.78 kB / 378.6 MB, free: 42.8 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.749e-05/0.2281, allocations: 123.4 kB / 378.8 MB, free: 42.71 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001804/0.2283, allocations: 199.3 kB / 379 MB, free: 42.57 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.2283, allocations: 0 / 379 MB, free: 42.57 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2283, allocations: 1.25 kB / 379 MB, free: 42.57 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.25e-06/0.2283, allocations: 0 / 379 MB, free: 42.57 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.0006598/0.229, allocations: 499 kB / 379.5 MB, free: 42.1 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.705e-05/0.2291, allocations: 10.31 kB / 379.5 MB, free: 42.1 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.805e-05/0.2291, allocations: 53.36 kB / 379.5 MB, free: 42.05 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.141e-05/0.2292, allocations: 25.94 kB / 379.5 MB, free: 42.04 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002135/0.2294, allocations: 238.6 kB / 379.8 MB, free: 41.78 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.811e-05/0.2294, allocations: 17.38 kB / 379.8 MB, free: 41.77 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.917e-05/0.2295, allocations: 28.98 kB / 379.8 MB, free: 41.76 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003531/0.2298, allocations: 193.4 kB / 380 MB, free: 41.63 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.59e-05/0.2299, allocations: 3.938 kB / 380 MB, free: 41.63 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.18e-05/0.2299, allocations: 5.906 kB / 380 MB, free: 41.62 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.868e-06/0.2299, allocations: 5.5 kB / 380 MB, free: 41.62 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003231/0.2302, allocations: 152 kB / 380.2 MB, free: 41.56 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.001161/0.2314, allocations: 0.9378 MB / 381.1 MB, free: 40.7 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002903/0.2317, allocations: 154.6 kB / 381.3 MB, free: 40.61 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001909/0.2319, allocations: 101.8 kB / 381.4 MB, free: 40.55 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.367e-05/0.232, allocations: 2.125 kB / 381.4 MB, free: 40.55 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.484e-05/0.232, allocations: 32.75 kB / 381.4 MB, free: 40.52 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.313e-06/0.232, allocations: 0 / 381.4 MB, free: 40.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.001165/0.2332, allocations: 433.9 kB / 381.8 MB, free: 40.23 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.302e-05/0.2332, allocations: 63.95 kB / 381.9 MB, free: 40.16 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000111/0.2333, allocations: 161.9 kB / 382 MB, free: 40.04 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.622e-05/0.2333, allocations: 30.77 kB / 382.1 MB, free: 40 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.701e-05/0.2334, allocations: 142.6 kB / 382.2 MB, free: 39.87 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.574e-05/0.2334, allocations: 61.81 kB / 382.3 MB, free: 39.81 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.858e-06/0.2335, allocations: 5.031 kB / 382.3 MB, free: 39.81 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.667e-05/0.2335, allocations: 331 kB / 382.6 MB, free: 39.48 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001104/0.2336, allocations: 51.17 kB / 382.6 MB, free: 39.46 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001171/0.2338, allocations: 74.08 kB / 382.7 MB, free: 39.41 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002194/0.234, allocations: 129.7 kB / 382.8 MB, free: 39.34 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.234, allocations: 1.219 kB / 382.8 MB, free: 39.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004101/0.2344, allocations: 228.2 kB / 383.1 MB, free: 39.21 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.461e-05/0.2344, allocations: 9.25 kB / 383.1 MB, free: 39.2 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.2344, allocations: 0 / 383.1 MB, free: 39.2 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00126/0.2357, allocations: 229.2 kB / 383.3 MB, free: 39.11 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001351/0.2359, allocations: 28.98 kB / 383.3 MB, free: 39.1 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003576/0.2362, allocations: 0.6142 MB / 383.9 MB, free: 38.52 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001179/0.2364, allocations: 18.44 kB / 384 MB, free: 38.51 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.538e-05/0.2364, allocations: 12.14 kB / 384 MB, free: 38.5 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.656e-05/0.2365, allocations: 131.5 kB / 384.1 MB, free: 38.37 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.84e-05/0.2365, allocations: 15.88 kB / 384.1 MB, free: 38.36 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004071/0.2369, allocations: 240.9 kB / 384.4 MB, free: 38.21 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.117e-06/0.2369, allocations: 2.188 kB / 384.4 MB, free: 38.21 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.237, allocations: 0 / 384.4 MB, free: 38.21 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.237, allocations: 8.984 kB / 384.4 MB, free: 38.2 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000707/0.2377, allocations: 0.5948 MB / 385 MB, free: 37.69 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.2377, allocations: 0 / 385 MB, free: 37.69 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001456/0.2378, allocations: 34.83 kB / 385 MB, free: 37.68 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001008/0.2389, allocations: 206.7 kB / 385.2 MB, free: 37.6 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.673e-05/0.2389, allocations: 9.297 kB / 385.2 MB, free: 37.59 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003079/0.2392, allocations: 0.6184 MB / 385.8 MB, free: 37.01 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.2392, allocations: 1 kB / 385.8 MB, free: 37.01 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006886/0.2399, allocations: 433.8 kB / 386.2 MB, free: 36.71 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.897e-05/0.24, allocations: 94.17 kB / 386.3 MB, free: 36.61 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.693e-05/0.24, allocations: 10.27 kB / 386.3 MB, free: 36.6 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001399/0.2401, allocations: 7.625 kB / 386.4 MB, free: 36.6 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.796e-05/0.2402, allocations: 17.17 kB / 386.4 MB, free: 36.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.208e-05/0.2402, allocations: 4.031 kB / 386.4 MB, free: 36.59 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.536e-05/0.2403, allocations: 137.5 kB / 386.5 MB, free: 36.48 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2403, allocations: 3.938 kB / 386.5 MB, free: 36.48 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002736/0.2406, allocations: 59.34 kB / 386.6 MB, free: 36.46 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.0008801/0.2415, allocations: 0.9591 MB / 387.5 MB, free: 35.64 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003292/0.2418, allocations: 155.2 kB / 387.7 MB, free: 35.57 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.2418, allocations: 1.156 kB / 387.7 MB, free: 35.57 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001761/0.242, allocations: 93.55 kB / 387.8 MB, free: 35.53 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003396/0.2424, allocations: 30.28 kB / 387.8 MB, free: 35.52 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001577/0.2439, allocations: 1.374 MB / 389.2 MB, free: 34.11 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001414/0.2441, allocations: 0.7399 MB / 389.9 MB, free: 33.34 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.861e-05/0.2442, allocations: 59.41 kB / 390 MB, free: 33.29 MB / 298.7 MB Notification: Performance of SimCode: time 2.51e-07/0.2442, allocations: 4 kB / 390 MB, free: 33.28 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.842/3.086, allocations: 3.746 MB / 393.7 MB, free: 29.53 MB / 298.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_HeatingRectifier_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_HeatingRectifier.fmu > 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