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.001406/0.001406, allocations: 110.5 kB / 17.73 MB, free: 5.359 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.001272/0.001272, allocations: 187.1 kB / 18.66 MB, free: 4.438 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.57/1.57, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001675/0.001675, allocations: 55.92 kB / 328 MB, free: 3.82 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.116, allocations: 46.62 MB / 374.6 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.00467/0.1207, allocations: 2.466 MB / 377.1 MB, free: 2.609 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001673/0.1225, allocations: 0.6786 MB / 377.8 MB, free: 1.926 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001436/0.1226, allocations: 8 kB / 377.8 MB, free: 1.918 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002011/0.1229, allocations: 27.66 kB / 377.8 MB, free: 1.891 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001689/0.123, allocations: 75.33 kB / 377.9 MB, free: 1.816 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004517/0.1235, allocations: 79.78 kB / 378 MB, free: 1.738 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004081/0.1239, allocations: 274.7 kB / 378.2 MB, free: 1.469 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002703/0.1242, allocations: 92.33 kB / 378.3 MB, free: 1.379 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002238/0.1244, allocations: 107.6 kB / 378.4 MB, free: 1.273 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002288/0.1247, allocations: 111.5 kB / 378.6 MB, free: 1.164 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.35e-05/0.1247, allocations: 24 kB / 378.6 MB, free: 1.141 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001189/0.1249, allocations: 35.98 kB / 378.6 MB, free: 1.105 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.421e-05/0.1249, allocations: 63.77 kB / 378.7 MB, free: 1.043 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001596/0.1251, allocations: 119.4 kB / 378.8 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004731/0.1256, allocations: 270.9 kB / 379.1 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.276e-06/0.1256, allocations: 0 / 379.1 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.176e-06/0.1256, allocations: 0 / 379.1 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.012e-05/0.1256, allocations: 0 / 379.1 MB, free: 0.6602 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.001078/0.1267, allocations: 0.5377 MB / 379.6 MB, free: 76 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.654e-05/0.1268, allocations: 8.031 kB / 379.6 MB, free: 68 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.917e-05/0.1268, allocations: 54.73 kB / 379.7 MB, free: 4 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.185/0.3118, allocations: 25.09 kB / 379.7 MB, free: 13.11 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004477/0.3123, allocations: 239.9 kB / 379.9 MB, free: 12.9 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.466e-05/0.3123, allocations: 19.09 kB / 379.9 MB, free: 12.9 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.578e-05/0.3124, allocations: 16.16 kB / 379.9 MB, free: 12.9 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004227/0.3128, allocations: 193.4 kB / 380.1 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.731e-05/0.3129, allocations: 4.844 kB / 380.1 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.677e-05/0.3129, allocations: 9.75 kB / 380.1 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.388e-06/0.3129, allocations: 4.125 kB / 380.2 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003123/0.3132, allocations: 153.1 kB / 380.3 MB, free: 12.86 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.001424/0.3147, allocations: 0.9331 MB / 381.2 MB, free: 12.28 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003276/0.315, allocations: 149 kB / 381.4 MB, free: 12.25 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002676/0.3153, allocations: 101.7 kB / 381.5 MB, free: 12.25 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.277e-05/0.3153, allocations: 3.5 kB / 381.5 MB, free: 12.25 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.904e-05/0.3153, allocations: 31.94 kB / 381.5 MB, free: 12.21 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 2.455e-06/0.3154, allocations: 2.531 kB / 381.5 MB, free: 12.21 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.001287/0.3167, allocations: 419 kB / 381.9 MB, free: 12.06 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.521e-05/0.3167, allocations: 55.92 kB / 382 MB, free: 12 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001626/0.3169, allocations: 170.9 kB / 382.1 MB, free: 11.9 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.694e-05/0.3169, allocations: 28.72 kB / 382.2 MB, free: 11.87 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.409e-05/0.317, allocations: 143.2 kB / 382.3 MB, free: 11.77 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.123e-05/0.317, allocations: 69.75 kB / 382.4 MB, free: 11.72 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.613e-05/0.3171, allocations: 35.61 kB / 382.4 MB, free: 11.7 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.163e-05/0.3172, allocations: 327.9 kB / 382.7 MB, free: 11.38 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001478/0.3174, allocations: 58.97 kB / 382.8 MB, free: 11.36 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001489/0.3175, allocations: 69.64 kB / 382.9 MB, free: 11.32 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002504/0.3178, allocations: 131.9 kB / 383 MB, free: 11.26 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.3178, allocations: 0.9062 kB / 383 MB, free: 11.26 MB / 318.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000472/0.3183, allocations: 216.9 kB / 383.2 MB, free: 11.15 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.635e-05/0.3183, allocations: 5.828 kB / 383.2 MB, free: 11.15 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.3183, allocations: 0.5312 kB / 383.2 MB, free: 11.15 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001433/0.3198, allocations: 223.9 kB / 383.4 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001471/0.3199, allocations: 29.47 kB / 383.5 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003942/0.3203, allocations: 0.6124 MB / 384.1 MB, free: 10.56 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001192/0.3205, allocations: 18.89 kB / 384.1 MB, free: 10.55 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.954e-05/0.3205, allocations: 6.453 kB / 384.1 MB, free: 10.55 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.000129/0.3206, allocations: 141.4 kB / 384.2 MB, free: 10.41 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.567e-05/0.3207, allocations: 17.16 kB / 384.3 MB, free: 10.41 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004806/0.3212, allocations: 227 kB / 384.5 MB, free: 10.29 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.594e-06/0.3212, allocations: 3.766 kB / 384.5 MB, free: 10.29 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.3212, allocations: 1.156 kB / 384.5 MB, free: 10.29 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.3212, allocations: 1.172 kB / 384.5 MB, free: 10.29 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009094/0.3221, allocations: 0.5898 MB / 385.1 MB, free: 9.852 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.089e-06/0.3221, allocations: 1.5 kB / 385.1 MB, free: 9.852 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000154/0.3223, allocations: 30.31 kB / 385.1 MB, free: 9.848 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001172/0.3235, allocations: 212.1 kB / 385.3 MB, free: 9.812 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.249e-05/0.3235, allocations: 1.641 kB / 385.3 MB, free: 9.812 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004024/0.3239, allocations: 0.6193 MB / 385.9 MB, free: 9.246 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.3239, allocations: 0.6562 kB / 385.9 MB, free: 9.246 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007759/0.3247, allocations: 431.8 kB / 386.3 MB, free: 8.996 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.027e-05/0.3248, allocations: 98.5 kB / 386.4 MB, free: 8.887 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.069e-05/0.3248, allocations: 9.812 kB / 386.5 MB, free: 8.883 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001383/0.325, allocations: 12.03 kB / 386.5 MB, free: 8.879 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.598e-05/0.325, allocations: 8.312 kB / 386.5 MB, free: 8.879 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.532e-05/0.3251, allocations: 10.55 kB / 386.5 MB, free: 8.875 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.921e-05/0.3252, allocations: 131 kB / 386.6 MB, free: 8.781 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3252, allocations: 0 / 386.6 MB, free: 8.781 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00032/0.3255, allocations: 69.05 kB / 386.7 MB, free: 8.758 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.0009804/0.3265, allocations: 0.9657 MB / 387.6 MB, free: 7.969 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004344/0.3269, allocations: 145.9 kB / 387.8 MB, free: 7.926 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.327, allocations: 0.9688 kB / 387.8 MB, free: 7.926 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001989/0.3272, allocations: 87.52 kB / 387.9 MB, free: 7.902 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003656/0.3275, allocations: 33.11 kB / 387.9 MB, free: 7.887 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002627/0.3302, allocations: 2.29 MB / 390.2 MB, free: 6.195 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002276/0.3304, allocations: 0.7421 MB / 390.9 MB, free: 5.492 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 7.898e-05/0.3305, allocations: 13.89 kB / 391 MB, free: 5.492 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.507e-05/0.3306, allocations: 63.05 kB / 391 MB, free: 5.449 MB / 318.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3306, allocations: 0 / 391 MB, free: 5.449 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0329/0.3635, allocations: 4.715 MB / 395.7 MB, free: 4.617 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.08/13.44, allocations: 4.938 kB / 395.7 MB, free: 4.613 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