Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001404/0.001404, allocations: 110.6 kB / 17.73 MB, free: 5.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001421/0.001421, allocations: 190.9 kB / 18.67 MB, free: 4.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.584/1.584, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002676/0.002676, allocations: 55.92 kB / 328 MB, free: 3.809 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.112, allocations: 46.62 MB / 374.7 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.004612/0.1167, allocations: 2.458 MB / 377.1 MB, free: 2.602 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002047/0.1188, allocations: 0.6747 MB / 377.8 MB, free: 1.922 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003303/0.1191, allocations: 8 kB / 377.8 MB, free: 1.914 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003222/0.1196, allocations: 35.59 kB / 377.8 MB, free: 1.879 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003423/0.1199, allocations: 71.39 kB / 377.9 MB, free: 1.809 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000568/0.1205, allocations: 87.77 kB / 378 MB, free: 1.723 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005614/0.1211, allocations: 266.7 kB / 378.2 MB, free: 1.461 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002919/0.1214, allocations: 92.27 kB / 378.3 MB, free: 1.371 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003238/0.1217, allocations: 103.6 kB / 378.4 MB, free: 1.27 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002957/0.1221, allocations: 119.5 kB / 378.5 MB, free: 1.152 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.829e-05/0.1221, allocations: 20 kB / 378.6 MB, free: 1.133 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001552/0.1223, allocations: 39.94 kB / 378.6 MB, free: 1.094 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.104e-05/0.1224, allocations: 51.81 kB / 378.7 MB, free: 1.043 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000171/0.1226, allocations: 123.4 kB / 378.8 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005073/0.1231, allocations: 278.9 kB / 379.1 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.1231, allocations: 0 / 379.1 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.993e-06/0.1231, allocations: 3.938 kB / 379.1 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.645e-05/0.1231, allocations: 0 / 379.1 MB, free: 0.6445 MB / 318.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.001084/0.1242, allocations: 0.5338 MB / 379.6 MB, free: 64 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.766e-05/0.1243, allocations: 8.031 kB / 379.6 MB, free: 56 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.2186/0.3429, allocations: 53.47 kB / 379.6 MB, free: 13.05 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001812/0.3431, allocations: 25.86 kB / 379.7 MB, free: 13.05 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006027/0.3438, allocations: 239.5 kB / 379.9 MB, free: 12.84 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.433e-05/0.3438, allocations: 16.88 kB / 379.9 MB, free: 12.84 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.285e-05/0.3439, allocations: 21.62 kB / 379.9 MB, free: 12.84 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000672/0.3446, allocations: 187.9 kB / 380.1 MB, free: 12.8 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.539e-05/0.3447, allocations: 3.938 kB / 380.1 MB, free: 12.8 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.514e-05/0.3447, allocations: 9.844 kB / 380.1 MB, free: 12.8 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.3447, allocations: 6.656 kB / 380.1 MB, free: 12.8 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003755/0.3451, allocations: 153.3 kB / 380.3 MB, free: 12.8 MB / 318.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.002184/0.3473, allocations: 0.9265 MB / 381.2 MB, free: 12.21 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005702/0.3479, allocations: 159.1 kB / 381.4 MB, free: 12.19 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003184/0.3482, allocations: 98.84 kB / 381.5 MB, free: 12.18 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.769e-05/0.3483, allocations: 2.812 kB / 381.5 MB, free: 12.18 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.775e-05/0.3483, allocations: 35.97 kB / 381.5 MB, free: 12.14 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 2.836e-06/0.3483, allocations: 0 / 381.5 MB, free: 12.14 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.001868/0.3502, allocations: 420.3 kB / 381.9 MB, free: 12 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.498e-05/0.3503, allocations: 55.11 kB / 382 MB, free: 11.93 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002691/0.3506, allocations: 166.9 kB / 382.1 MB, free: 11.84 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.089e-05/0.3506, allocations: 29.7 kB / 382.2 MB, free: 11.8 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001092/0.3507, allocations: 149.5 kB / 382.3 MB, free: 11.7 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.766e-05/0.3508, allocations: 64.2 kB / 382.4 MB, free: 11.67 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001031/0.3509, allocations: 39.89 kB / 382.4 MB, free: 11.64 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.536e-05/0.351, allocations: 327.7 kB / 382.7 MB, free: 11.32 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000208/0.3512, allocations: 55.05 kB / 382.8 MB, free: 11.3 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000226/0.3515, allocations: 73.05 kB / 382.9 MB, free: 11.27 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003717/0.3519, allocations: 127.8 kB / 383 MB, free: 11.2 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.399e-06/0.3519, allocations: 0 / 383 MB, free: 11.2 MB / 318.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0007324/0.3526, allocations: 219.7 kB / 383.2 MB, free: 11.09 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.895e-05/0.3527, allocations: 5.312 kB / 383.2 MB, free: 11.09 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.103e-05/0.3527, allocations: 1.094 kB / 383.2 MB, free: 11.09 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001945/0.3546, allocations: 226.1 kB / 383.4 MB, free: 11.06 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002198/0.3549, allocations: 30.38 kB / 383.5 MB, free: 11.06 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006091/0.3555, allocations: 0.6161 MB / 384.1 MB, free: 10.5 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000202/0.3557, allocations: 17 kB / 384.1 MB, free: 10.49 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.408e-05/0.3558, allocations: 5.984 kB / 384.1 MB, free: 10.49 MB / 318.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.0002011/0.356, allocations: 134.7 kB / 384.2 MB, free: 10.36 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.233e-05/0.3561, allocations: 16.5 kB / 384.2 MB, free: 10.35 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007481/0.3568, allocations: 233.1 kB / 384.5 MB, free: 10.22 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.884e-06/0.3569, allocations: 2.406 kB / 384.5 MB, free: 10.22 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.558e-06/0.3569, allocations: 3.5 kB / 384.5 MB, free: 10.22 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.847e-06/0.3569, allocations: 0.9375 kB / 384.5 MB, free: 10.22 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001488/0.3584, allocations: 0.5899 MB / 385.1 MB, free: 9.789 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.711e-06/0.3584, allocations: 0 / 385.1 MB, free: 9.789 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002342/0.3587, allocations: 32.44 kB / 385.1 MB, free: 9.785 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001637/0.3603, allocations: 203.8 kB / 385.3 MB, free: 9.754 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.336e-05/0.3604, allocations: 9.562 kB / 385.3 MB, free: 9.75 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006198/0.361, allocations: 0.6196 MB / 385.9 MB, free: 9.184 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.361, allocations: 0 / 385.9 MB, free: 9.184 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001241/0.3623, allocations: 425.7 kB / 386.3 MB, free: 8.934 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001076/0.3624, allocations: 106.6 kB / 386.5 MB, free: 8.82 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.11e-05/0.3624, allocations: 3.062 kB / 386.5 MB, free: 8.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002322/0.3627, allocations: 13.97 kB / 386.5 MB, free: 8.812 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.052e-05/0.3628, allocations: 10.8 kB / 386.5 MB, free: 8.812 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.38e-05/0.3628, allocations: 8.219 kB / 386.5 MB, free: 8.809 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001492/0.363, allocations: 128.5 kB / 386.6 MB, free: 8.719 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.252e-06/0.363, allocations: 1.875 kB / 386.6 MB, free: 8.719 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006004/0.3636, allocations: 62.67 kB / 386.7 MB, free: 8.699 MB / 318.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.001739/0.3653, allocations: 0.9602 MB / 387.6 MB, free: 7.918 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008443/0.3662, allocations: 154.4 kB / 387.8 MB, free: 7.867 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.741e-06/0.3662, allocations: 1.281 kB / 387.8 MB, free: 7.867 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003497/0.3666, allocations: 87.28 kB / 387.9 MB, free: 7.844 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007487/0.3674, allocations: 33.53 kB / 387.9 MB, free: 7.828 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004275/0.3717, allocations: 2.296 MB / 390.2 MB, free: 6.133 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003306/0.372, allocations: 0.7378 MB / 390.9 MB, free: 5.434 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001272/0.3722, allocations: 11.09 kB / 390.9 MB, free: 5.434 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001419/0.3723, allocations: 58.03 kB / 391 MB, free: 5.395 MB / 318.1 MB Notification: Performance of SimCode: time 1.663e-06/0.3724, allocations: 3.938 kB / 391 MB, free: 5.391 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0366/0.409, allocations: 4.723 MB / 395.7 MB, free: 4.562 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.54/12.95, allocations: 9.062 kB / 395.7 MB, free: 4.555 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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.002 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingRectifier.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/HeatingRectifier/HeatingRectifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches