Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001643/0.001643, allocations: 112.2 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001913/0.001913, allocations: 180.5 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.401/1.401, allocations: 225.6 MB / 252.5 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_NORGate,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001488/0.001488, allocations: 47.92 kB / 370.5 MB, free: 9.906 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2682/0.2697, allocations: 52.18 MB / 422.6 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.006186/0.2759, allocations: 4.991 MB / 427.6 MB, free: 9.566 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002448/0.2783, allocations: 1.272 MB / 428.9 MB, free: 8.285 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002836/0.2786, allocations: 15.94 kB / 428.9 MB, free: 8.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003057/0.2789, allocations: 122.7 kB / 429 MB, free: 8.148 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004652/0.2794, allocations: 269.6 kB / 429.3 MB, free: 7.883 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006471/0.28, allocations: 311.5 kB / 429.6 MB, free: 7.578 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001077/0.2811, allocations: 1.103 MB / 430.7 MB, free: 6.473 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000311/0.2814, allocations: 187 kB / 430.9 MB, free: 6.273 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004861/0.2819, allocations: 430.5 kB / 431.3 MB, free: 5.852 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005851/0.2825, allocations: 478.1 kB / 431.8 MB, free: 5.383 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001235/0.2826, allocations: 88 kB / 431.9 MB, free: 5.297 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002124/0.2828, allocations: 116 kB / 432 MB, free: 5.184 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001711/0.283, allocations: 203.3 kB / 432.2 MB, free: 4.984 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004147/0.2834, allocations: 457.8 kB / 432.6 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001047/0.2844, allocations: 1.031 MB / 433.7 MB, free: 3.504 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.2844, allocations: 0 / 433.7 MB, free: 3.504 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.2844, allocations: 0 / 433.7 MB, free: 3.504 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.564e-05/0.2845, allocations: 0 / 433.7 MB, free: 3.504 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 158 * Number of variables: 158 Notification: Performance of Generate backend data structure: time 0.002477/0.2869, allocations: 1.205 MB / 434.9 MB, free: 2.25 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.553e-05/0.287, allocations: 8.031 kB / 434.9 MB, free: 2.242 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001207/0.2871, allocations: 110.7 kB / 435 MB, free: 2.125 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000149/0.2872, allocations: 96.38 kB / 435.1 MB, free: 2.031 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006903/0.2879, allocations: 434 kB / 435.5 MB, free: 1.578 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.608e-05/0.288, allocations: 45.69 kB / 435.5 MB, free: 1.531 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001078/0.2881, allocations: 68.36 kB / 435.6 MB, free: 1.465 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001353/0.2894, allocations: 0.6624 MB / 436.3 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/0.2895, allocations: 0 / 436.3 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.497e-05/0.2895, allocations: 28 kB / 436.3 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.919e-05/0.2895, allocations: 16 kB / 436.3 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001673/0.2912, allocations: 0.6999 MB / 437 MB, free: 56 kB / 334.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.003958/0.2952, allocations: 2.319 MB / 439.3 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001437/0.2966, allocations: 0.5507 MB / 439.9 MB, free: 13.03 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007313/0.2973, allocations: 314 kB / 440.2 MB, free: 12.72 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.825e-05/0.2974, allocations: 8.422 kB / 440.2 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009487/0.2983, allocations: 425.4 kB / 440.6 MB, free: 12.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 5.44e-06/0.2984, allocations: 7.984 kB / 440.6 MB, free: 12.26 MB / 350.1 MB Notification: Performance of matching and sorting (n=94): time 0.07311/0.3715, allocations: 15.23 MB / 455.8 MB, free: 12.97 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001084/0.3716, allocations: 141.5 kB / 456 MB, free: 12.8 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006711/0.3722, allocations: 0.5186 MB / 456.5 MB, free: 12.27 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001638/0.3724, allocations: 49.7 kB / 456.6 MB, free: 12.22 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003059/0.3727, allocations: 396.6 kB / 456.9 MB, free: 11.82 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003125/0.373, allocations: 333.1 kB / 457.3 MB, free: 11.5 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003531/0.3734, allocations: 182.6 kB / 457.4 MB, free: 11.31 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000192/0.3736, allocations: 394.7 kB / 457.8 MB, free: 10.92 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002101/0.3757, allocations: 0.7166 MB / 458.5 MB, free: 10.2 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002236/0.3779, allocations: 0.959 MB / 459.5 MB, free: 9.152 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004242/0.3821, allocations: 1.693 MB / 461.2 MB, free: 7.367 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.3822, allocations: 0 / 461.2 MB, free: 7.367 MB / 366.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02508/0.4072, allocations: 5.328 MB / 466.5 MB, free: 2.008 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.479e-05/0.4073, allocations: 67.39 kB / 466.6 MB, free: 1.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.608e-05/0.4073, allocations: 7.984 kB / 466.6 MB, free: 1.922 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03605/0.4434, allocations: 6.841 MB / 473.4 MB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007082/0.4441, allocations: 159.7 kB / 473.6 MB, free: 10.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007147/0.4512, allocations: 3.176 MB / 476.8 MB, free: 7.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001631/0.4529, allocations: 175.9 kB / 476.9 MB, free: 7.508 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001116/0.453, allocations: 51.91 kB / 477 MB, free: 7.457 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * 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 (54): * Single equations (assignments): 50 * 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.0004143/0.4534, allocations: 225.7 kB / 477.2 MB, free: 7.227 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001596/0.4536, allocations: 83.48 kB / 477.3 MB, free: 7.145 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02303/0.4766, allocations: 5.057 MB / 482.4 MB, free: 2.062 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.572e-05/0.4766, allocations: 8 kB / 482.4 MB, free: 2.055 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.909e-06/0.4766, allocations: 8 kB / 482.4 MB, free: 2.047 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.893e-05/0.4766, allocations: 3.984 kB / 482.4 MB, free: 2.043 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001703/0.4783, allocations: 1.076 MB / 483.5 MB, free: 0.9258 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.4783, allocations: 0 / 483.5 MB, free: 0.9258 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005476/0.4789, allocations: 99.81 kB / 483.5 MB, free: 0.8281 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03547/0.5144, allocations: 6.797 MB / 490.3 MB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002043/0.5146, allocations: 23.98 kB / 490.4 MB, free: 9.992 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006097/0.5207, allocations: 3.048 MB / 493.4 MB, free: 6.887 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.5207, allocations: 0 / 493.4 MB, free: 6.887 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0258/0.5465, allocations: 5.945 MB / 499.4 MB, free: 0.9141 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002153/0.5467, allocations: 75.44 kB / 499.4 MB, free: 0.8398 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001688/0.5468, allocations: 23.94 kB / 499.5 MB, free: 0.8164 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001385/0.5482, allocations: 167.8 kB / 499.6 MB, free: 0.6523 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002576/0.5485, allocations: 96.83 kB / 499.7 MB, free: 0.5586 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.833e-05/0.5486, allocations: 35.98 kB / 499.8 MB, free: 0.5234 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004421/0.549, allocations: 358.8 kB / 0.4884 GB, free: 176 kB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.549, allocations: 0 / 0.4884 GB, free: 176 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008149/0.5498, allocations: 264 kB / 0.4886 GB, free: 15.91 MB / 414.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.02617/0.576, allocations: 6.536 MB / 0.495 GB, free: 9.332 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.007047/0.583, allocations: 2.103 MB / 0.4971 GB, free: 7.207 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.5831, allocations: 0 / 0.4971 GB, free: 7.207 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003542/0.5866, allocations: 1.015 MB / 0.4981 GB, free: 6.191 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007379/0.5873, allocations: 137.3 kB / 0.4982 GB, free: 6.062 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05748/0.6448, allocations: 15.88 MB / 0.5137 GB, free: 5.852 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005855/0.6454, allocations: 0.9468 MB / 0.5146 GB, free: 4.875 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003277/0.6457, allocations: 66.25 kB / 0.5147 GB, free: 4.809 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003639/0.6461, allocations: 271.3 kB / 0.5149 GB, free: 4.543 MB / 430.1 MB Notification: Performance of SimCode: time 1.012e-06/0.6461, allocations: 0 / 0.5149 GB, free: 4.543 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2502/0.8963, allocations: 30.91 MB / 0.5451 GB, free: 114.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.16/15.06, allocations: 6.672 kB / 0.5451 GB, free: 114.7 MB / 446.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.csv --start-time 0 --stop-time 200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0396747 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingNPN_NORGate/HeatingNPN_NORGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.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: 17.691325857002084]