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.001331/0.001332, allocations: 114.5 kB / 17.73 MB, free: 5.336 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.001291/0.001291, allocations: 187 kB / 18.67 MB, free: 4.402 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.626/1.626, 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.001449/0.001449, allocations: 51.94 kB / 328 MB, free: 3.785 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1207, allocations: 46.62 MB / 374.7 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.007137/0.1279, allocations: 4.704 MB / 379.4 MB, free: 336 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2484/0.3764, allocations: 1.27 MB / 380.6 MB, free: 9.184 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006412/0.3771, allocations: 11.08 kB / 380.6 MB, free: 9.184 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003505/0.3775, allocations: 114.2 kB / 380.8 MB, free: 9.184 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005957/0.3781, allocations: 257.2 kB / 381 MB, free: 9.078 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001165/0.3793, allocations: 295.9 kB / 381.3 MB, free: 9.066 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00196/0.3813, allocations: 1.06 MB / 382.4 MB, free: 8.855 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006566/0.3819, allocations: 263.3 kB / 382.6 MB, free: 8.801 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001123/0.3831, allocations: 410 kB / 383 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009534/0.384, allocations: 456.7 kB / 383.5 MB, free: 8.578 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001529/0.3842, allocations: 85.44 kB / 383.5 MB, free: 8.578 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000288/0.3845, allocations: 110.4 kB / 383.7 MB, free: 8.57 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001796/0.3847, allocations: 184.9 kB / 383.8 MB, free: 8.449 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004176/0.3851, allocations: 429.4 kB / 384.3 MB, free: 8.195 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001356/0.3865, allocations: 0.9772 MB / 385.2 MB, free: 7.832 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.3865, allocations: 0 / 385.2 MB, free: 7.832 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3865, allocations: 0 / 385.2 MB, free: 7.832 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.843e-05/0.3865, allocations: 2.75 kB / 385.2 MB, free: 7.832 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: 152 * Number of variables: 152 Notification: Performance of Generate backend data structure: time 0.002886/0.3894, allocations: 1.232 MB / 386.5 MB, free: 6.984 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.038e-05/0.3895, allocations: 10.16 kB / 386.5 MB, free: 6.984 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001216/0.3896, allocations: 104.9 kB / 386.6 MB, free: 6.906 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001674/0.3898, allocations: 94.72 kB / 386.7 MB, free: 6.859 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007134/0.3905, allocations: 475.2 kB / 387.1 MB, free: 6.496 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.706e-05/0.3905, allocations: 42.53 kB / 387.2 MB, free: 6.477 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001156/0.3907, allocations: 65.77 kB / 387.2 MB, free: 6.457 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001466/0.3921, allocations: 0.6389 MB / 387.9 MB, free: 6.215 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.794e-05/0.3922, allocations: 0 / 387.9 MB, free: 6.215 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.732e-05/0.3922, allocations: 26.22 kB / 387.9 MB, free: 6.195 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.858e-05/0.3923, allocations: 18.69 kB / 387.9 MB, free: 6.191 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001732/0.394, allocations: 0.6743 MB / 388.6 MB, free: 5.988 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.004104/0.3981, allocations: 2.31 MB / 390.9 MB, free: 4.559 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00143/0.3996, allocations: 0.584 MB / 391.5 MB, free: 4.332 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006968/0.4003, allocations: 332.3 kB / 391.8 MB, free: 4.215 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.247e-05/0.4004, allocations: 18.86 kB / 391.8 MB, free: 4.207 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009856/0.4014, allocations: 427.6 kB / 392.3 MB, free: 4.02 MB / 318.1 MB Notification: Performance of pre-optimization done (n=54): time 2.214e-06/0.4014, allocations: 5.438 kB / 392.3 MB, free: 4.016 MB / 318.1 MB Notification: Performance of matching and sorting (n=94): time 0.06911/0.4705, allocations: 15.44 MB / 407.7 MB, free: 13.47 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001166/0.4706, allocations: 145.4 kB / 407.8 MB, free: 13.3 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000858/0.4715, allocations: 494.9 kB / 408.3 MB, free: 12.8 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003096/0.4718, allocations: 49.69 kB / 408.4 MB, free: 12.75 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003604/0.4722, allocations: 375.2 kB / 408.7 MB, free: 12.38 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004753/0.4727, allocations: 324.9 kB / 409.1 MB, free: 12.06 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004906/0.4732, allocations: 182.5 kB / 409.2 MB, free: 11.88 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001987/0.4734, allocations: 382.8 kB / 409.6 MB, free: 11.49 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002154/0.4756, allocations: 0.7202 MB / 410.3 MB, free: 10.77 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002196/0.4778, allocations: 0.9265 MB / 411.3 MB, free: 9.766 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00423/0.482, allocations: 1.654 MB / 412.9 MB, free: 8.027 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.606e-06/0.4821, allocations: 11.88 kB / 412.9 MB, free: 8.016 MB / 334.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02281/0.5049, allocations: 5.352 MB / 418.3 MB, free: 2.645 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001112/0.5051, allocations: 59.41 kB / 418.3 MB, free: 2.574 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.156e-05/0.5051, allocations: 8.125 kB / 418.3 MB, free: 2.566 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03375/0.5389, allocations: 6.835 MB / 425.2 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007606/0.5397, allocations: 147.7 kB / 425.3 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00759/0.5473, allocations: 3.166 MB / 428.5 MB, free: 8.363 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001937/0.5493, allocations: 175.8 kB / 428.7 MB, free: 8.191 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002457/0.5496, allocations: 47.97 kB / 428.7 MB, free: 8.145 MB / 350.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.0006566/0.5502, allocations: 217.6 kB / 428.9 MB, free: 7.922 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000363/0.5506, allocations: 83.52 kB / 429 MB, free: 7.84 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02235/0.573, allocations: 5.101 MB / 434.1 MB, free: 2.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.1e-05/0.5731, allocations: 12 kB / 434.1 MB, free: 2.719 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.25e-05/0.5731, allocations: 0 / 434.1 MB, free: 2.719 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.279e-05/0.5731, allocations: 5.672 kB / 434.1 MB, free: 2.715 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002385/0.5755, allocations: 1.106 MB / 435.2 MB, free: 1.574 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.666e-05/0.5756, allocations: 4 kB / 435.2 MB, free: 1.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005839/0.5762, allocations: 91.83 kB / 435.3 MB, free: 1.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03381/0.61, allocations: 6.798 MB / 442.1 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003152/0.6104, allocations: 27.97 kB / 442.1 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006298/0.6167, allocations: 3.05 MB / 445.2 MB, free: 7.547 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.571e-06/0.6167, allocations: 0 / 445.2 MB, free: 7.547 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02527/0.642, allocations: 5.984 MB / 451.2 MB, free: 1.539 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003855/0.6425, allocations: 148.6 kB / 451.3 MB, free: 1.375 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004188/0.6429, allocations: 16 kB / 451.3 MB, free: 1.359 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001676/0.6446, allocations: 172.7 kB / 451.5 MB, free: 1.191 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003682/0.645, allocations: 100.8 kB / 451.6 MB, free: 1.094 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001623/0.6452, allocations: 31.97 kB / 451.6 MB, free: 1.062 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004817/0.6457, allocations: 334.9 kB / 452 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.6457, allocations: 0 / 452 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001128/0.6468, allocations: 260 kB / 452.2 MB, free: 496 kB / 366.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.02524/0.6721, allocations: 6.57 MB / 458.8 MB, free: 9.887 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007534/0.6796, allocations: 2.17 MB / 460.9 MB, free: 7.695 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.434e-06/0.6797, allocations: 1.125 kB / 461 MB, free: 7.695 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003785/0.6835, allocations: 1.094 MB / 462 MB, free: 6.605 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00149/0.685, allocations: 133 kB / 462.2 MB, free: 6.477 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05663/0.7417, allocations: 15.77 MB / 477.9 MB, free: 6.461 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005521/0.7423, allocations: 0.935 MB / 478.9 MB, free: 5.496 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003501/0.7426, allocations: 58.06 kB / 478.9 MB, free: 5.438 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003822/0.743, allocations: 263.3 kB / 479.2 MB, free: 5.18 MB / 398.1 MB Notification: Performance of SimCode: time 7.72e-07/0.7431, allocations: 0 / 479.2 MB, free: 5.18 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0635/0.8066, allocations: 29.11 MB / 0.4964 GB, free: 7.977 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.27/15.08, allocations: 11.91 kB / 0.4964 GB, free: 7.965 MB / 430.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