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.001723/0.001723, allocations: 123.4 kB / 17.79 MB, free: 5.227 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.001929/0.001929, allocations: 208.3 kB / 20.75 MB, free: 2.273 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.442/1.442, allocations: 230.6 MB / 254.1 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="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.00142/0.00142, allocations: 55.94 kB / 373 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1054, allocations: 53.32 MB / 426.3 MB, free: 4.766 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.004109/0.1095, allocations: 2.55 MB / 428.9 MB, free: 2.199 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001375/0.1109, allocations: 0.7012 MB / 429.6 MB, free: 1.492 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000126/0.111, allocations: 7.938 kB / 429.6 MB, free: 1.484 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001578/0.1112, allocations: 31.66 kB / 429.6 MB, free: 1.453 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001474/0.1113, allocations: 75.33 kB / 429.7 MB, free: 1.379 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003149/0.1117, allocations: 95.77 kB / 429.8 MB, free: 1.285 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003186/0.112, allocations: 282.7 kB / 430.1 MB, free: 1.008 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001764/0.1121, allocations: 60.38 kB / 430.1 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002034/0.1124, allocations: 115.6 kB / 430.2 MB, free: 0.832 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001781/0.1125, allocations: 119.5 kB / 430.3 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.666e-05/0.1126, allocations: 24 kB / 430.4 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.255e-05/0.1127, allocations: 43.91 kB / 430.4 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.645e-05/0.1127, allocations: 47.84 kB / 430.5 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001267/0.1128, allocations: 123.4 kB / 430.6 MB, free: 492 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000368/0.1132, allocations: 294.8 kB / 430.9 MB, free: 196 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.1132, allocations: 0 / 430.9 MB, free: 196 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1132, allocations: 4 kB / 430.9 MB, free: 192 kB / 350.1 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.1132, allocations: 0 / 430.9 MB, free: 192 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.1996/0.3128, allocations: 0.5329 MB / 431.4 MB, free: 8.086 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.747e-05/0.3129, allocations: 9.594 kB / 431.4 MB, free: 8.086 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001101/0.313, allocations: 55.19 kB / 431.5 MB, free: 8.047 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003018/0.3133, allocations: 38.86 kB / 431.5 MB, free: 8.031 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004947/0.3138, allocations: 245.9 kB / 431.7 MB, free: 7.824 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.416e-05/0.3138, allocations: 17.59 kB / 431.8 MB, free: 7.824 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.905e-05/0.3139, allocations: 17.81 kB / 431.8 MB, free: 7.824 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004928/0.3144, allocations: 195.9 kB / 432 MB, free: 7.785 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.693e-05/0.3144, allocations: 1.062 kB / 432 MB, free: 7.785 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.435e-05/0.3144, allocations: 7.75 kB / 432 MB, free: 7.785 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.014e-05/0.3144, allocations: 5.344 kB / 432 MB, free: 7.785 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000383/0.3148, allocations: 155.2 kB / 432.1 MB, free: 7.785 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.001469/0.3163, allocations: 0.9279 MB / 433.1 MB, free: 7.199 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003215/0.3166, allocations: 145.5 kB / 433.2 MB, free: 7.176 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000204/0.3168, allocations: 87.38 kB / 433.3 MB, free: 7.168 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.683e-05/0.3168, allocations: 4.656 kB / 433.3 MB, free: 7.168 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.935e-05/0.3168, allocations: 32.28 kB / 433.3 MB, free: 7.129 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 2.104e-06/0.3168, allocations: 2.125 kB / 433.3 MB, free: 7.129 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.001233/0.3181, allocations: 420 kB / 433.7 MB, free: 6.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.412e-05/0.3181, allocations: 56.22 kB / 433.8 MB, free: 6.918 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001749/0.3183, allocations: 177.7 kB / 434 MB, free: 6.809 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.55e-05/0.3183, allocations: 31.23 kB / 434 MB, free: 6.777 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.102e-05/0.3184, allocations: 150.9 kB / 434.1 MB, free: 6.672 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.036e-05/0.3184, allocations: 66.73 kB / 434.2 MB, free: 6.629 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.284e-05/0.3185, allocations: 39.56 kB / 434.2 MB, free: 6.613 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.243e-05/0.3185, allocations: 333.8 kB / 434.6 MB, free: 6.297 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001139/0.3186, allocations: 47.64 kB / 434.6 MB, free: 6.297 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001261/0.3188, allocations: 72.77 kB / 434.7 MB, free: 6.281 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002279/0.319, allocations: 127.1 kB / 434.8 MB, free: 6.266 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.319, allocations: 0 / 434.8 MB, free: 6.266 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004148/0.3194, allocations: 218.8 kB / 435 MB, free: 6.215 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.829e-05/0.3194, allocations: 5.781 kB / 435 MB, free: 6.215 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.3194, allocations: 1.188 kB / 435 MB, free: 6.215 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001381/0.3208, allocations: 221.2 kB / 435.3 MB, free: 6.195 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001461/0.321, allocations: 34.16 kB / 435.3 MB, free: 6.195 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003846/0.3213, allocations: 0.6108 MB / 435.9 MB, free: 5.672 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001256/0.3215, allocations: 13.66 kB / 435.9 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.606e-05/0.3215, allocations: 10.95 kB / 435.9 MB, free: 5.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 0.0001015/0.3216, allocations: 134.6 kB / 436.1 MB, free: 5.547 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.833e-05/0.3216, allocations: 17 kB / 436.1 MB, free: 5.539 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00046/0.3221, allocations: 226.7 kB / 436.3 MB, free: 5.484 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.501e-06/0.3221, allocations: 2.281 kB / 436.3 MB, free: 5.484 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.3221, allocations: 4 kB / 436.3 MB, free: 5.48 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.3221, allocations: 1.188 kB / 436.3 MB, free: 5.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008791/0.323, allocations: 0.5883 MB / 436.9 MB, free: 5.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.323, allocations: 0 / 436.9 MB, free: 5.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001504/0.3231, allocations: 31.41 kB / 436.9 MB, free: 5.156 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001087/0.3242, allocations: 211 kB / 437.1 MB, free: 5.141 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.886e-05/0.3242, allocations: 2 kB / 437.1 MB, free: 5.141 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003541/0.3246, allocations: 0.6228 MB / 437.7 MB, free: 4.621 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.3246, allocations: 0 / 437.7 MB, free: 4.621 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007819/0.3254, allocations: 427 kB / 438.2 MB, free: 4.457 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.693e-05/0.3254, allocations: 103.5 kB / 438.3 MB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.114e-05/0.3255, allocations: 5.062 kB / 438.3 MB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001398/0.3256, allocations: 14.67 kB / 438.3 MB, free: 4.34 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.093e-05/0.3257, allocations: 9.953 kB / 438.3 MB, free: 4.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.421e-05/0.3257, allocations: 6.203 kB / 438.3 MB, free: 4.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001008/0.3258, allocations: 131.2 kB / 438.4 MB, free: 4.266 MB / 350.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.3258, allocations: 0 / 438.4 MB, free: 4.266 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003383/0.3261, allocations: 60.52 kB / 438.5 MB, free: 4.258 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.0009954/0.3271, allocations: 0.9593 MB / 439.4 MB, free: 3.566 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004007/0.3275, allocations: 155.1 kB / 439.6 MB, free: 3.551 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3275, allocations: 0 / 439.6 MB, free: 3.551 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001845/0.3277, allocations: 77.19 kB / 439.7 MB, free: 3.551 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003352/0.328, allocations: 33.86 kB / 439.7 MB, free: 3.547 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00274/0.3308, allocations: 2.333 MB / 442 MB, free: 1.941 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002223/0.331, allocations: 0.7449 MB / 442.8 MB, free: 1.238 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.717e-05/0.3311, allocations: 11.59 kB / 442.8 MB, free: 1.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.583e-05/0.3312, allocations: 61.17 kB / 442.9 MB, free: 1.184 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3312, allocations: 0 / 442.9 MB, free: 1.184 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03292/0.3641, allocations: 4.829 MB / 447.7 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/11.82, allocations: 2.125 kB / 447.7 MB, free: 0.5586 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 & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 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.csv","/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.357405000002473]