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.001308/0.001308, allocations: 121 kB / 18.5 MB, free: 4.562 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.001405/0.001405, allocations: 213.5 kB / 21.45 MB, free: 1.617 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.422/1.422, allocations: 230.6 MB / 254.8 MB, free: 15.08 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001488/0.001488, allocations: 55.92 kB / 373.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1089, allocations: 53.33 MB / 427 MB, free: 4.773 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.003955/0.1129, allocations: 2.546 MB / 429.6 MB, free: 2.211 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001416/0.1143, allocations: 0.7011 MB / 430.3 MB, free: 1.504 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000115/0.1144, allocations: 7.938 kB / 430.3 MB, free: 1.496 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001593/0.1146, allocations: 35.64 kB / 430.3 MB, free: 1.461 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001386/0.1147, allocations: 79.28 kB / 430.4 MB, free: 1.383 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003202/0.115, allocations: 91.81 kB / 430.5 MB, free: 1.293 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003148/0.1154, allocations: 282.7 kB / 430.8 MB, free: 1.016 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001699/0.1155, allocations: 68.3 kB / 430.8 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000206/0.1157, allocations: 111.6 kB / 430.9 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001689/0.1159, allocations: 115.5 kB / 431 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.347e-05/0.1159, allocations: 20 kB / 431.1 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.521e-05/0.116, allocations: 43.98 kB / 431.1 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.975e-05/0.1161, allocations: 59.77 kB / 431.2 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001213/0.1162, allocations: 123.4 kB / 431.3 MB, free: 492 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003642/0.1166, allocations: 286.8 kB / 431.6 MB, free: 204 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.1166, allocations: 3.984 kB / 431.6 MB, free: 200 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.1166, allocations: 4 kB / 431.6 MB, free: 196 kB / 350.1 MB Notification: Performance of Transformations before backend: time 7.995e-06/0.1166, allocations: 0 / 431.6 MB, free: 196 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.1986/0.3152, allocations: 0.5253 MB / 432.1 MB, free: 8.844 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/0.3153, allocations: 10.75 kB / 432.1 MB, free: 8.844 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.707e-05/0.3153, allocations: 6.438 kB / 432.1 MB, free: 8.844 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.472e-05/0.3153, allocations: 57.66 kB / 432.2 MB, free: 8.805 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000183/0.3155, allocations: 39.67 kB / 432.2 MB, free: 8.789 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003119/0.3158, allocations: 244.3 kB / 432.5 MB, free: 8.582 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.993e-05/0.3158, allocations: 20.06 kB / 432.5 MB, free: 8.582 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.066e-05/0.3159, allocations: 18.5 kB / 432.5 MB, free: 8.582 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003653/0.3163, allocations: 194.7 kB / 432.7 MB, free: 8.543 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.406e-05/0.3163, allocations: 0.8438 kB / 432.7 MB, free: 8.543 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.27e-05/0.3163, allocations: 8.219 kB / 432.7 MB, free: 8.543 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.198e-06/0.3163, allocations: 6.531 kB / 432.7 MB, free: 8.543 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003171/0.3166, allocations: 151.1 kB / 432.8 MB, free: 8.539 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.001144/0.3178, allocations: 0.9348 MB / 433.8 MB, free: 7.957 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002764/0.318, allocations: 139.1 kB / 433.9 MB, free: 7.934 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000179/0.3182, allocations: 91.09 kB / 434 MB, free: 7.926 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.23e-05/0.3182, allocations: 4.938 kB / 434 MB, free: 7.926 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.201e-05/0.3183, allocations: 37.7 kB / 434 MB, free: 7.887 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.964e-06/0.3183, allocations: 0 / 434 MB, free: 7.887 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.001154/0.3194, allocations: 425.2 kB / 434.5 MB, free: 7.738 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.005e-05/0.3194, allocations: 53.47 kB / 434.5 MB, free: 7.676 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001298/0.3196, allocations: 180.8 kB / 434.7 MB, free: 7.566 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.568e-05/0.3196, allocations: 31.67 kB / 434.7 MB, free: 7.535 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.191e-05/0.3196, allocations: 150.6 kB / 434.9 MB, free: 7.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.168e-05/0.3197, allocations: 66.81 kB / 434.9 MB, free: 7.387 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.554e-05/0.3197, allocations: 32.28 kB / 435 MB, free: 7.371 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.586e-05/0.3198, allocations: 335.9 kB / 435.3 MB, free: 7.055 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001038/0.3199, allocations: 49.67 kB / 435.3 MB, free: 7.055 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001105/0.32, allocations: 69.53 kB / 435.4 MB, free: 7.039 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002103/0.3202, allocations: 127 kB / 435.5 MB, free: 7.023 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.3202, allocations: 2.375 kB / 435.5 MB, free: 7.023 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003612/0.3206, allocations: 218.5 kB / 435.7 MB, free: 6.973 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/0.3206, allocations: 5.188 kB / 435.8 MB, free: 6.973 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.3206, allocations: 4.969 kB / 435.8 MB, free: 6.969 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001272/0.3219, allocations: 216.7 kB / 436 MB, free: 6.961 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001383/0.322, allocations: 37.02 kB / 436 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003391/0.3223, allocations: 0.6067 MB / 436.6 MB, free: 6.438 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001099/0.3224, allocations: 17.17 kB / 436.6 MB, free: 6.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.361e-05/0.3225, allocations: 4.375 kB / 436.6 MB, free: 6.43 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 8.968e-05/0.3225, allocations: 138.9 kB / 436.8 MB, free: 6.312 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.24e-05/0.3226, allocations: 17.12 kB / 436.8 MB, free: 6.305 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004066/0.323, allocations: 228.1 kB / 437 MB, free: 6.246 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.069e-06/0.323, allocations: 3.469 kB / 437 MB, free: 6.246 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.323, allocations: 0 / 437 MB, free: 6.246 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.323, allocations: 5.031 kB / 437 MB, free: 6.246 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007562/0.3238, allocations: 0.5861 MB / 437.6 MB, free: 5.922 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.768e-06/0.3238, allocations: 5.219 kB / 437.6 MB, free: 5.918 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001451/0.3239, allocations: 27.36 kB / 437.6 MB, free: 5.918 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001048/0.325, allocations: 202.2 kB / 437.8 MB, free: 5.906 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.759e-05/0.325, allocations: 9.422 kB / 437.8 MB, free: 5.906 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000374/0.3254, allocations: 0.6217 MB / 438.5 MB, free: 5.383 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.215e-06/0.3254, allocations: 3.547 kB / 438.5 MB, free: 5.383 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007755/0.3261, allocations: 429.4 kB / 438.9 MB, free: 5.215 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.045e-05/0.3262, allocations: 99.81 kB / 439 MB, free: 5.105 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.92e-05/0.3262, allocations: 5.812 kB / 439 MB, free: 5.105 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001376/0.3263, allocations: 6.047 kB / 439 MB, free: 5.105 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.403e-05/0.3264, allocations: 13.97 kB / 439 MB, free: 5.105 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.465e-05/0.3264, allocations: 5.781 kB / 439 MB, free: 5.105 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.754e-05/0.3265, allocations: 132.9 kB / 439.1 MB, free: 5.031 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3265, allocations: 0 / 439.1 MB, free: 5.031 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003207/0.3268, allocations: 57.95 kB / 439.2 MB, free: 5.023 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.001007/0.3278, allocations: 0.9662 MB / 440.2 MB, free: 4.328 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003924/0.3282, allocations: 148.9 kB / 440.3 MB, free: 4.312 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.888e-06/0.3282, allocations: 4 kB / 440.3 MB, free: 4.312 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001786/0.3284, allocations: 76.69 kB / 440.4 MB, free: 4.312 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003318/0.3287, allocations: 34.83 kB / 440.4 MB, free: 4.305 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00255/0.3313, allocations: 2.33 MB / 442.8 MB, free: 2.648 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001813/0.3315, allocations: 0.7396 MB / 443.5 MB, free: 1.949 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.043e-05/0.3315, allocations: 10.39 kB / 443.5 MB, free: 1.941 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.547e-05/0.3316, allocations: 60.84 kB / 443.6 MB, free: 1.895 MB / 350.1 MB Notification: Performance of SimCode: time 8.52e-07/0.3316, allocations: 4 kB / 443.6 MB, free: 1.891 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02521/0.3568, allocations: 4.861 MB / 448.4 MB, free: 1.254 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.64/12, allocations: 6.125 kB / 448.4 MB, free: 1.254 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.52137314202264]