Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.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.HeatingNPN_OrGate,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate",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.001403/0.001403, allocations: 104.8 kB / 17.58 MB, free: 5.562 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.001492/0.001492, allocations: 184.2 kB / 18.5 MB, free: 4.648 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.446/1.446, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.001309/0.00131, allocations: 59.86 kB / 280.8 MB, free: 3.078 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09245/0.09378, allocations: 46.62 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.005765/0.09959, allocations: 4.708 MB / 332.1 MB, free: 15.64 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00262/0.1022, allocations: 1.264 MB / 333.4 MB, free: 14.36 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005726/0.1028, allocations: 12 kB / 333.4 MB, free: 14.35 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004138/0.1033, allocations: 114.8 kB / 333.5 MB, free: 14.24 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008207/0.1041, allocations: 241.7 kB / 333.7 MB, free: 14 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009089/0.1051, allocations: 307.5 kB / 334 MB, free: 13.7 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001314/0.1064, allocations: 1.044 MB / 335.1 MB, free: 12.65 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004576/0.1069, allocations: 266.4 kB / 335.3 MB, free: 12.38 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000668/0.1075, allocations: 402.6 kB / 335.7 MB, free: 11.98 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006932/0.1082, allocations: 450.1 kB / 336.2 MB, free: 11.54 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001951/0.1084, allocations: 88 kB / 336.2 MB, free: 11.46 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002657/0.1087, allocations: 108 kB / 336.3 MB, free: 11.35 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001874/0.1089, allocations: 187.3 kB / 336.5 MB, free: 11.17 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000526/0.1094, allocations: 437.8 kB / 337 MB, free: 10.74 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001001/0.1105, allocations: 0.9657 MB / 337.9 MB, free: 9.77 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.1105, allocations: 0 / 337.9 MB, free: 9.77 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1105, allocations: 0 / 337.9 MB, free: 9.77 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.721e-05/0.1105, allocations: 0 / 337.9 MB, free: 9.77 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 152 * Number of variables: 152 Notification: Performance of Generate backend data structure: time 0.002531/0.1131, allocations: 1.207 MB / 339.1 MB, free: 8.492 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.354e-05/0.1131, allocations: 12.02 kB / 339.1 MB, free: 8.48 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000125/0.1132, allocations: 106.7 kB / 339.2 MB, free: 8.367 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001726/0.1134, allocations: 87.91 kB / 339.3 MB, free: 8.281 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006004/0.114, allocations: 461.4 kB / 339.8 MB, free: 7.789 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.23e-05/0.1141, allocations: 45.69 kB / 339.8 MB, free: 7.746 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001061/0.1142, allocations: 64.36 kB / 339.9 MB, free: 7.684 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001379/0.1156, allocations: 0.639 MB / 340.5 MB, free: 7.039 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.946e-05/0.1156, allocations: 0 / 340.5 MB, free: 7.039 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.017e-05/0.1157, allocations: 20 kB / 340.5 MB, free: 7.02 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.682e-05/0.1157, allocations: 16 kB / 340.6 MB, free: 7.004 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001589/0.1173, allocations: 0.6842 MB / 341.2 MB, free: 6.316 MB / 286.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.003614/0.1209, allocations: 2.335 MB / 343.6 MB, free: 3.832 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001391/0.1223, allocations: 0.5827 MB / 344.2 MB, free: 3.238 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007212/0.1231, allocations: 333.9 kB / 344.5 MB, free: 2.91 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.755e-05/0.1231, allocations: 16.36 kB / 344.5 MB, free: 2.895 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009564/0.1241, allocations: 425.4 kB / 344.9 MB, free: 2.453 MB / 286.1 MB Notification: Performance of pre-optimization done (n=54): time 2.354e-06/0.1241, allocations: 0 / 344.9 MB, free: 2.453 MB / 286.1 MB Notification: Performance of matching and sorting (n=94): time 0.06882/0.1929, allocations: 15.41 MB / 360.3 MB, free: 2.953 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001147/0.1931, allocations: 141.5 kB / 360.5 MB, free: 2.781 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007109/0.1938, allocations: 494.8 kB / 360.9 MB, free: 2.289 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002321/0.1941, allocations: 45.7 kB / 361 MB, free: 2.238 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003038/0.1944, allocations: 371.9 kB / 361.4 MB, free: 1.867 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000424/0.1948, allocations: 307.5 kB / 361.7 MB, free: 1.562 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004086/0.1952, allocations: 182.5 kB / 361.8 MB, free: 1.379 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002074/0.1955, allocations: 374.8 kB / 362.2 MB, free: 1.004 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00209/0.1976, allocations: 0.7202 MB / 362.9 MB, free: 292 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002239/0.1998, allocations: 0.9342 MB / 363.9 MB, free: 15.27 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004107/0.2039, allocations: 1.658 MB / 365.5 MB, free: 13.53 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.758e-06/0.204, allocations: 4 kB / 365.5 MB, free: 13.52 MB / 318.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02346/0.2275, allocations: 5.343 MB / 370.9 MB, free: 8.148 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.43e-05/0.2276, allocations: 67.39 kB / 370.9 MB, free: 8.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.453e-05/0.2276, allocations: 4 kB / 370.9 MB, free: 8.066 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03338/0.261, allocations: 6.851 MB / 377.8 MB, free: 1.199 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007194/0.2618, allocations: 139.8 kB / 377.9 MB, free: 1.062 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1835/0.4453, allocations: 3.154 MB / 381.1 MB, free: 52.55 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001876/0.4472, allocations: 179 kB / 381.2 MB, free: 52.55 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002042/0.4474, allocations: 45.8 kB / 381.3 MB, free: 52.55 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 10 (V2.signalSource.count,$PRE.V2.signalSource.count,V2.signalSource.T_start,$PRE.V2.signalSource.T_start,V1.signalSource.count,$PRE.V1.signalSource.count,V1.signalSource.T_start,$PRE.V1.signalSource.T_start,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(5,32), (5,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0005071/0.4479, allocations: 223.7 kB / 381.5 MB, free: 52.44 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002179/0.4482, allocations: 76.45 kB / 381.6 MB, free: 52.44 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0219/0.4701, allocations: 5.114 MB / 386.7 MB, free: 51.75 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.266e-05/0.4701, allocations: 9.812 kB / 386.7 MB, free: 51.75 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.007e-05/0.4702, allocations: 1.438 kB / 386.7 MB, free: 51.75 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.147e-05/0.4702, allocations: 3.891 kB / 386.7 MB, free: 51.75 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001431/0.4716, allocations: 1.094 MB / 387.8 MB, free: 51.18 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.129e-06/0.4716, allocations: 0 / 387.8 MB, free: 51.18 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005206/0.4722, allocations: 90.92 kB / 387.9 MB, free: 51.18 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03081/0.503, allocations: 6.806 MB / 394.7 MB, free: 49.65 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002815/0.5033, allocations: 23.8 kB / 394.7 MB, free: 49.64 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005067/0.5084, allocations: 3.041 MB / 397.8 MB, free: 47.61 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.5084, allocations: 3.938 kB / 397.8 MB, free: 47.6 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02133/0.5298, allocations: 5.984 MB / 403.8 MB, free: 41.93 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002602/0.5301, allocations: 149.5 kB / 403.9 MB, free: 41.77 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001656/0.5303, allocations: 20 kB / 403.9 MB, free: 41.75 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001291/0.5315, allocations: 171.8 kB / 404.1 MB, free: 41.58 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002604/0.5318, allocations: 92.88 kB / 404.2 MB, free: 41.49 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.967e-05/0.5319, allocations: 35.97 kB / 404.2 MB, free: 41.46 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003448/0.5323, allocations: 334.9 kB / 404.5 MB, free: 41.13 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5323, allocations: 0 / 404.5 MB, free: 41.13 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007301/0.533, allocations: 253.1 kB / 404.8 MB, free: 40.89 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (HeatCapacitor1.T) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,V1.signalSource.T_start,V1.signalSource.count,V2.signalSource.T_start,V2.signalSource.count) * Number of discrete states: 2 (V2.signalSource.count,V1.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(5,32), (5,36)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02216/0.5552, allocations: 6.573 MB / 411.4 MB, free: 34.29 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.006232/0.5615, allocations: 2.186 MB / 413.5 MB, free: 32.08 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.782e-06/0.5615, allocations: 0 / 413.5 MB, free: 32.08 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003157/0.5647, allocations: 1.09 MB / 414.6 MB, free: 31 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007802/0.5655, allocations: 133.6 kB / 414.8 MB, free: 30.88 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04882/0.6143, allocations: 15.95 MB / 430.7 MB, free: 14.7 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003537/0.6147, allocations: 0.9389 MB / 431.7 MB, free: 13.73 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000427/0.6152, allocations: 56.89 kB / 431.7 MB, free: 13.68 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003169/0.6155, allocations: 263.3 kB / 432 MB, free: 13.42 MB / 318.1 MB Notification: Performance of SimCode: time 1.102e-06/0.6155, allocations: 0 / 432 MB, free: 13.42 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05914/0.6746, allocations: 28.79 MB / 460.8 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.24/12.92, allocations: 7.969 kB / 460.8 MB, free: 0.5273 MB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate_res.csv --start-time 0 --stop-time 200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.08 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/HeatingNPN_OrGate/HeatingNPN_OrGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches