Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001881/0.001881, allocations: 109.5 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00235/0.00235, allocations: 186.2 kB / 23.72 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.367/1.367, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001597/0.001597, allocations: 51.92 kB / 370.5 MB, free: 9.816 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.255/0.2566, allocations: 52.17 MB / 422.6 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.003898/0.2605, allocations: 2.546 MB / 425.2 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001227/0.2618, allocations: 0.6544 MB / 425.8 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001286/0.2619, allocations: 4 kB / 425.8 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001401/0.262, allocations: 35.64 kB / 425.9 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001438/0.2622, allocations: 79.28 kB / 425.9 MB, free: 11.25 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002944/0.2625, allocations: 83.81 kB / 426 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003203/0.2628, allocations: 274.8 kB / 426.3 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000166/0.263, allocations: 68.48 kB / 426.4 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001701/0.2631, allocations: 115.5 kB / 426.5 MB, free: 10.71 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001916/0.2633, allocations: 123.5 kB / 426.6 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.598e-05/0.2634, allocations: 24 kB / 426.6 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.934e-05/0.2634, allocations: 36 kB / 426.7 MB, free: 10.53 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.939e-05/0.2635, allocations: 47.83 kB / 426.7 MB, free: 10.48 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001252/0.2636, allocations: 119.4 kB / 426.8 MB, free: 10.37 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003633/0.264, allocations: 287.3 kB / 427.1 MB, free: 10.09 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.264, allocations: 0 / 427.1 MB, free: 10.09 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.264, allocations: 0 / 427.1 MB, free: 10.09 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.178e-05/0.264, allocations: 0 / 427.1 MB, free: 10.09 MB / 334.1 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.0008652/0.2649, allocations: 481.5 kB / 427.6 MB, free: 9.59 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.542e-05/0.2649, allocations: 8.031 kB / 427.6 MB, free: 9.582 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.619e-05/0.265, allocations: 58.67 kB / 427.6 MB, free: 9.516 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.892e-05/0.265, allocations: 24.8 kB / 427.7 MB, free: 9.492 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003292/0.2654, allocations: 178.2 kB / 427.8 MB, free: 9.293 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.189e-05/0.2654, allocations: 20.75 kB / 427.9 MB, free: 9.273 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.402e-05/0.2654, allocations: 24.38 kB / 427.9 MB, free: 9.25 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003883/0.2658, allocations: 191.4 kB / 428.1 MB, free: 9.055 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.338e-05/0.2658, allocations: 0 / 428.1 MB, free: 9.055 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.568e-05/0.2659, allocations: 11.98 kB / 428.1 MB, free: 9.043 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.048e-05/0.2659, allocations: 7.938 kB / 428.1 MB, free: 9.035 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003186/0.2662, allocations: 149.7 kB / 428.2 MB, free: 8.887 MB / 334.1 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.001427/0.2676, allocations: 0.8977 MB / 429.1 MB, free: 7.887 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003287/0.2679, allocations: 138.6 kB / 429.3 MB, free: 7.742 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002008/0.2681, allocations: 92.27 kB / 429.4 MB, free: 7.652 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.803e-05/0.2682, allocations: 4 kB / 429.4 MB, free: 7.648 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.856e-05/0.2682, allocations: 34.5 kB / 429.4 MB, free: 7.605 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.422e-06/0.2682, allocations: 0 / 429.4 MB, free: 7.605 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.001245/0.2694, allocations: 338.3 kB / 429.7 MB, free: 7.266 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.033e-05/0.2695, allocations: 55.41 kB / 429.8 MB, free: 7.199 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002018/0.2697, allocations: 179.3 kB / 430 MB, free: 7.012 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.206e-05/0.2697, allocations: 25.7 kB / 430 MB, free: 6.98 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001135/0.2698, allocations: 144.5 kB / 430.1 MB, free: 6.836 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.846e-05/0.2699, allocations: 71.41 kB / 430.2 MB, free: 6.766 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.495e-05/0.2699, allocations: 33.72 kB / 430.2 MB, free: 6.727 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000158/0.2701, allocations: 334.8 kB / 430.5 MB, free: 6.391 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001142/0.2702, allocations: 43.98 kB / 430.6 MB, free: 6.348 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001303/0.2703, allocations: 75.75 kB / 430.7 MB, free: 6.27 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002492/0.2706, allocations: 132.7 kB / 430.8 MB, free: 6.137 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.2706, allocations: 0 / 430.8 MB, free: 6.137 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004236/0.271, allocations: 210.3 kB / 431 MB, free: 5.922 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.809e-05/0.271, allocations: 8.031 kB / 431 MB, free: 5.914 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.271, allocations: 7.938 kB / 431 MB, free: 5.906 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001397/0.2724, allocations: 216.6 kB / 431.2 MB, free: 5.691 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001404/0.2726, allocations: 27.98 kB / 431.3 MB, free: 5.664 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005492/0.2731, allocations: 0.6109 MB / 431.9 MB, free: 5.027 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001236/0.2733, allocations: 19.91 kB / 431.9 MB, free: 5.008 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.537e-05/0.2733, allocations: 11.94 kB / 431.9 MB, free: 4.996 MB / 334.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001533/0.2734, allocations: 134.8 kB / 432 MB, free: 4.855 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.644e-05/0.2735, allocations: 15.91 kB / 432 MB, free: 4.84 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004703/0.2739, allocations: 231.1 kB / 432.3 MB, free: 4.609 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.2739, allocations: 4 kB / 432.3 MB, free: 4.605 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.2739, allocations: 0 / 432.3 MB, free: 4.605 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.274, allocations: 0 / 432.3 MB, free: 4.605 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009418/0.2749, allocations: 0.5614 MB / 432.8 MB, free: 3.988 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.2749, allocations: 7.938 kB / 432.8 MB, free: 3.98 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000152/0.275, allocations: 35.89 kB / 432.9 MB, free: 3.945 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001067/0.2761, allocations: 200.6 kB / 433.1 MB, free: 3.746 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.691e-05/0.2761, allocations: 4 kB / 433.1 MB, free: 3.742 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005307/0.2767, allocations: 0.6226 MB / 433.7 MB, free: 3.094 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/0.2767, allocations: 0 / 433.7 MB, free: 3.094 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008532/0.2775, allocations: 420.9 kB / 434.1 MB, free: 2.66 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.676e-05/0.2776, allocations: 23.89 kB / 434.1 MB, free: 2.637 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.712e-05/0.2776, allocations: 0 / 434.1 MB, free: 2.637 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001491/0.2777, allocations: 20.05 kB / 434.2 MB, free: 2.617 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.475e-05/0.2778, allocations: 11.92 kB / 434.2 MB, free: 2.605 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.403e-05/0.2778, allocations: 8 kB / 434.2 MB, free: 2.598 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001256/0.2779, allocations: 139.2 kB / 434.3 MB, free: 2.461 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2779, allocations: 0 / 434.3 MB, free: 2.461 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003075/0.2782, allocations: 59.83 kB / 434.4 MB, free: 2.402 MB / 334.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001245/0.2795, allocations: 0.9482 MB / 435.3 MB, free: 1.418 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004155/0.2799, allocations: 153.1 kB / 435.5 MB, free: 1.273 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.1e-06/0.2799, allocations: 4 kB / 435.5 MB, free: 1.27 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001881/0.2801, allocations: 83.8 kB / 435.5 MB, free: 1.188 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003452/0.2804, allocations: 35.91 kB / 435.6 MB, free: 1.152 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003102/0.2835, allocations: 2.325 MB / 437.9 MB, free: 14.74 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004068/0.2839, allocations: 0.7359 MB / 438.6 MB, free: 13.98 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.181e-05/0.284, allocations: 13.48 kB / 438.7 MB, free: 13.96 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.773e-05/0.2841, allocations: 59.39 kB / 438.7 MB, free: 13.9 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.2841, allocations: 4 kB / 438.7 MB, free: 13.9 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03461/0.3187, allocations: 4.946 MB / 443.7 MB, free: 9.109 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.45/12.77, allocations: 7.438 kB / 443.7 MB, free: 9.105 MB / 350.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingRectifier_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingRectifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.155780010158196]