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.001435/0.001435, allocations: 113.2 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.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.002007/0.002007, allocations: 212.8 kB / 23.74 MB, free: 4.656 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.495/1.495, allocations: 230.6 MB / 257.5 MB, free: 8.023 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.001762/0.001762, allocations: 55.91 kB / 377.8 MB, free: 3.113 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2756/0.2773, allocations: 53.36 MB / 431.1 MB, free: 6.859 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.004503/0.2818, allocations: 2.57 MB / 433.7 MB, free: 4.281 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001553/0.2834, allocations: 0.7011 MB / 434.4 MB, free: 3.574 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001993/0.2836, allocations: 7.938 kB / 434.4 MB, free: 3.566 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001745/0.2837, allocations: 35.59 kB / 434.5 MB, free: 3.531 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001992/0.2839, allocations: 79.33 kB / 434.5 MB, free: 3.453 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003669/0.2843, allocations: 95.75 kB / 434.6 MB, free: 3.359 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003797/0.2847, allocations: 274.8 kB / 434.9 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002349/0.2849, allocations: 66.98 kB / 435 MB, free: 3.023 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002481/0.2852, allocations: 115.5 kB / 435.1 MB, free: 2.91 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002146/0.2854, allocations: 119.5 kB / 435.2 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.37e-05/0.2854, allocations: 20 kB / 435.2 MB, free: 2.773 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001075/0.2855, allocations: 47.98 kB / 435.3 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.854e-05/0.2856, allocations: 47.84 kB / 435.3 MB, free: 2.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001373/0.2857, allocations: 127.3 kB / 435.4 MB, free: 2.555 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003902/0.2861, allocations: 290.8 kB / 435.7 MB, free: 2.27 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.2861, allocations: 0 / 435.7 MB, free: 2.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.517e-06/0.2861, allocations: 4 kB / 435.7 MB, free: 2.266 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.977e-06/0.2861, allocations: 0 / 435.7 MB, free: 2.266 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.0009049/0.287, allocations: 473.5 kB / 436.2 MB, free: 1.773 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.2871, allocations: 8.031 kB / 436.2 MB, free: 1.766 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.36e-05/0.2871, allocations: 58.67 kB / 436.2 MB, free: 1.699 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000171/0.2873, allocations: 40.73 kB / 436.3 MB, free: 1.66 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003921/0.2877, allocations: 190.1 kB / 436.5 MB, free: 1.449 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.025e-05/0.2877, allocations: 16.81 kB / 436.5 MB, free: 1.434 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.378e-05/0.2878, allocations: 20.38 kB / 436.5 MB, free: 1.414 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003788/0.2881, allocations: 191.4 kB / 436.7 MB, free: 1.223 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.661e-05/0.2882, allocations: 4 kB / 436.7 MB, free: 1.219 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.232e-05/0.2882, allocations: 8 kB / 436.7 MB, free: 1.211 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.695e-06/0.2882, allocations: 7.938 kB / 436.7 MB, free: 1.203 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003338/0.2885, allocations: 149.6 kB / 436.9 MB, free: 1.055 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.001511/0.29, allocations: 0.9016 MB / 437.8 MB, free: 52 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003433/0.2904, allocations: 134.7 kB / 437.9 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002053/0.2906, allocations: 88.81 kB / 438 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.502e-05/0.2906, allocations: 4 kB / 438 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.561e-05/0.2907, allocations: 38.5 kB / 438 MB, free: 15.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.262e-06/0.2907, allocations: 0 / 438 MB, free: 15.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.001252/0.2919, allocations: 338.2 kB / 438.4 MB, free: 15.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.655e-05/0.292, allocations: 59.41 kB / 438.4 MB, free: 15.36 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002028/0.2922, allocations: 180.4 kB / 438.6 MB, free: 15.17 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.681e-05/0.2922, allocations: 29.7 kB / 438.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001425/0.2923, allocations: 148.4 kB / 438.8 MB, free: 14.99 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.329e-05/0.2924, allocations: 63.44 kB / 438.8 MB, free: 14.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.809e-05/0.2925, allocations: 37.7 kB / 438.9 MB, free: 14.88 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002789/0.2927, allocations: 334.8 kB / 439.2 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001219/0.2929, allocations: 43.98 kB / 439.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001324/0.293, allocations: 73.69 kB / 439.3 MB, free: 14.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002502/0.2932, allocations: 128.4 kB / 439.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.2932, allocations: 0 / 439.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004231/0.2937, allocations: 214.3 kB / 439.6 MB, free: 14.08 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/0.2937, allocations: 6.344 kB / 439.6 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.2937, allocations: 11.97 kB / 439.7 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001392/0.2951, allocations: 220.5 kB / 439.9 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001483/0.2952, allocations: 31.98 kB / 439.9 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007592/0.296, allocations: 0.6148 MB / 440.5 MB, free: 13.17 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001189/0.2961, allocations: 15.91 kB / 440.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.452e-05/0.2961, allocations: 8 kB / 440.5 MB, free: 13.15 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 0.0001348/0.2963, allocations: 133.7 kB / 440.7 MB, free: 13.01 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001459/0.2964, allocations: 19.91 kB / 440.7 MB, free: 12.99 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005514/0.297, allocations: 224.2 kB / 440.9 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.67e-06/0.297, allocations: 8.047 kB / 440.9 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.297, allocations: 3.938 kB / 440.9 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.297, allocations: 0 / 440.9 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009371/0.2979, allocations: 0.5614 MB / 441.5 MB, free: 12.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.802e-06/0.2979, allocations: 7.938 kB / 441.5 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001474/0.2981, allocations: 27.92 kB / 441.5 MB, free: 12.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001109/0.2992, allocations: 204.7 kB / 441.7 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.674e-05/0.2992, allocations: 4 kB / 441.7 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005437/0.2997, allocations: 0.6187 MB / 442.3 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.2997, allocations: 0 / 442.3 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001032/0.3008, allocations: 429.5 kB / 442.8 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.211e-05/0.3008, allocations: 23.83 kB / 442.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.128e-05/0.3008, allocations: 4 kB / 442.8 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001476/0.301, allocations: 16.06 kB / 442.8 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.185e-05/0.301, allocations: 15.91 kB / 442.8 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.311e-05/0.3011, allocations: 4 kB / 442.8 MB, free: 10.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001437/0.3012, allocations: 132.1 kB / 442.9 MB, free: 10.62 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3012, allocations: 0 / 442.9 MB, free: 10.62 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003251/0.3015, allocations: 59.89 kB / 443 MB, free: 10.56 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.001371/0.3029, allocations: 0.9522 MB / 444 MB, free: 9.57 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000411/0.3033, allocations: 155.7 kB / 444.1 MB, free: 9.418 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.3033, allocations: 0 / 444.1 MB, free: 9.418 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001971/0.3035, allocations: 79.89 kB / 444.2 MB, free: 9.34 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003373/0.3038, allocations: 29.69 kB / 444.2 MB, free: 9.316 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003372/0.3072, allocations: 2.346 MB / 446.6 MB, free: 6.879 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003967/0.3076, allocations: 0.7398 MB / 447.3 MB, free: 6.113 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.485e-05/0.3077, allocations: 17.47 kB / 447.3 MB, free: 6.098 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.935e-05/0.3078, allocations: 55.42 kB / 447.4 MB, free: 6.043 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3078, allocations: 0 / 447.4 MB, free: 6.043 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0341/0.3419, allocations: 4.983 MB / 452.4 MB, free: 1.219 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.63/12.97, allocations: 0 / 452.4 MB, free: 1.219 MB / 350.1 MB " [Timeout remaining time 647] (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: 15.56292607798241]