Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001275/0.001275, allocations: 124.5 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001416/0.001416, allocations: 207.2 kB / 20.75 MB, free: 2.316 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.423/1.423, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001714/0.001714, allocations: 47.92 kB / 373 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09873/0.1004, allocations: 53.34 MB / 426.3 MB, free: 4.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.004063/0.1045, allocations: 2.538 MB / 428.9 MB, free: 2.215 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001424/0.1059, allocations: 0.705 MB / 429.6 MB, free: 1.504 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001675/0.1061, allocations: 4 kB / 429.6 MB, free: 1.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001624/0.1063, allocations: 43.64 kB / 429.6 MB, free: 1.457 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001742/0.1064, allocations: 67.34 kB / 429.7 MB, free: 1.391 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003668/0.1068, allocations: 103.8 kB / 429.8 MB, free: 1.289 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003753/0.1072, allocations: 278.7 kB / 430.1 MB, free: 1.016 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001745/0.1073, allocations: 60.36 kB / 430.1 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002428/0.1076, allocations: 119.6 kB / 430.2 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001865/0.1078, allocations: 115.5 kB / 430.3 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.913e-05/0.1078, allocations: 24 kB / 430.4 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001114/0.1079, allocations: 43.98 kB / 430.4 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.592e-05/0.108, allocations: 43.84 kB / 430.5 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001235/0.1081, allocations: 127.3 kB / 430.6 MB, free: 500 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003821/0.1085, allocations: 294.8 kB / 430.9 MB, free: 204 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.1085, allocations: 0 / 430.9 MB, free: 204 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1085, allocations: 0 / 430.9 MB, free: 204 kB / 350.1 MB Notification: Performance of Transformations before backend: time 8.816e-06/0.1085, allocations: 0 / 430.9 MB, free: 204 kB / 350.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.1769/0.2854, allocations: 0.5343 MB / 431.4 MB, free: 11.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.73e-05/0.2855, allocations: 9.281 kB / 431.4 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.013e-05/0.2855, allocations: 53.78 kB / 431.5 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001837/0.2857, allocations: 40.12 kB / 431.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003494/0.2861, allocations: 244.2 kB / 431.7 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.709e-05/0.2861, allocations: 18.22 kB / 431.8 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.895e-05/0.2861, allocations: 18.22 kB / 431.8 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003906/0.2865, allocations: 195.3 kB / 432 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.496e-05/0.2865, allocations: 3.938 kB / 432 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.171e-05/0.2866, allocations: 10.62 kB / 432 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.137e-06/0.2866, allocations: 5.078 kB / 432 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003333/0.2869, allocations: 147.1 kB / 432.1 MB, free: 10.81 MB / 350.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.001246/0.2882, allocations: 0.9304 MB / 433.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003118/0.2885, allocations: 143.1 kB / 433.2 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001951/0.2887, allocations: 87.67 kB / 433.3 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.624e-05/0.2887, allocations: 5.156 kB / 433.3 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.83e-05/0.2887, allocations: 32.06 kB / 433.3 MB, free: 10.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.713e-06/0.2887, allocations: 4.25 kB / 433.3 MB, free: 10.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.001223/0.2899, allocations: 421.4 kB / 433.7 MB, free: 10.01 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.673e-05/0.29, allocations: 60.91 kB / 433.8 MB, free: 9.945 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001392/0.2901, allocations: 182.1 kB / 434 MB, free: 9.832 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.701e-05/0.2901, allocations: 28.83 kB / 434 MB, free: 9.801 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.151e-05/0.2902, allocations: 153.7 kB / 434.2 MB, free: 9.695 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.596e-05/0.2902, allocations: 64.48 kB / 434.2 MB, free: 9.652 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.226e-05/0.2903, allocations: 37.44 kB / 434.3 MB, free: 9.637 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.926e-05/0.2903, allocations: 327.7 kB / 434.6 MB, free: 9.324 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001073/0.2904, allocations: 54.88 kB / 434.6 MB, free: 9.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001368/0.2906, allocations: 72.45 kB / 434.7 MB, free: 9.305 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002253/0.2908, allocations: 125.9 kB / 434.8 MB, free: 9.289 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.2908, allocations: 0 / 434.8 MB, free: 9.289 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003794/0.2912, allocations: 214.7 kB / 435 MB, free: 9.238 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.2912, allocations: 5.781 kB / 435 MB, free: 9.238 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.2912, allocations: 2.344 kB / 435 MB, free: 9.238 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001307/0.2925, allocations: 222.8 kB / 435.3 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001414/0.2926, allocations: 31.45 kB / 435.3 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003473/0.293, allocations: 0.6169 MB / 435.9 MB, free: 8.672 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000112/0.2931, allocations: 10.22 kB / 435.9 MB, free: 8.668 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.41e-05/0.2931, allocations: 8.5 kB / 435.9 MB, free: 8.664 MB / 350.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 9.293e-05/0.2932, allocations: 139.1 kB / 436.1 MB, free: 8.535 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.211e-05/0.2933, allocations: 15.84 kB / 436.1 MB, free: 8.527 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004226/0.2937, allocations: 225.2 kB / 436.3 MB, free: 8.406 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.2937, allocations: 5.344 kB / 436.3 MB, free: 8.406 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.2937, allocations: 0 / 436.3 MB, free: 8.406 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.2937, allocations: 1.453 kB / 436.3 MB, free: 8.406 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000765/0.2945, allocations: 0.5906 MB / 436.9 MB, free: 7.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.2945, allocations: 2.562 kB / 436.9 MB, free: 7.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001464/0.2946, allocations: 29.06 kB / 436.9 MB, free: 7.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001033/0.2956, allocations: 206.2 kB / 437.1 MB, free: 7.949 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.594e-05/0.2957, allocations: 1.984 kB / 437.1 MB, free: 7.949 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003643/0.296, allocations: 0.6276 MB / 437.8 MB, free: 7.383 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.296, allocations: 1.156 kB / 437.8 MB, free: 7.383 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007937/0.2968, allocations: 422.3 kB / 438.2 MB, free: 7.137 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.965e-05/0.2969, allocations: 104.4 kB / 438.3 MB, free: 7.023 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.618e-05/0.2969, allocations: 6.672 kB / 438.3 MB, free: 7.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001394/0.297, allocations: 10.94 kB / 438.3 MB, free: 7.016 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.087e-05/0.2971, allocations: 12.38 kB / 438.3 MB, free: 7.016 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.333e-05/0.2971, allocations: 5 kB / 438.3 MB, free: 7.016 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.203e-05/0.2972, allocations: 134.9 kB / 438.4 MB, free: 6.922 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2972, allocations: 1.156 kB / 438.4 MB, free: 6.922 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003103/0.2975, allocations: 61.55 kB / 438.5 MB, free: 6.906 MB / 350.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.000936/0.2984, allocations: 0.9499 MB / 439.4 MB, free: 6.137 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000385/0.2988, allocations: 152.4 kB / 439.6 MB, free: 6.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.2988, allocations: 0 / 439.6 MB, free: 6.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001843/0.299, allocations: 80.05 kB / 439.7 MB, free: 6.07 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003263/0.2993, allocations: 36.38 kB / 439.7 MB, free: 6.051 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002539/0.3019, allocations: 2.335 MB / 442 MB, free: 4.352 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001657/0.302, allocations: 0.737 MB / 442.8 MB, free: 3.656 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.489e-05/0.3021, allocations: 15.05 kB / 442.8 MB, free: 3.648 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.332e-05/0.3022, allocations: 60.66 kB / 442.9 MB, free: 3.605 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3022, allocations: 0 / 442.9 MB, free: 3.605 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04037/0.3425, allocations: 4.828 MB / 447.7 MB, free: 2.984 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.25/11.59, allocations: 5.672 kB / 447.7 MB, free: 2.984 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_HeatingRectifier_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_HeatingRectifier.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/HeatingRectifier/HeatingRectifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 14.076145644998178]