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.001657/0.001657, allocations: 123 kB / 17.79 MB, free: 5.285 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.001858/0.001858, allocations: 189.2 kB / 20.73 MB, free: 2.352 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.514/1.514, allocations: 225.6 MB / 249.1 MB, free: 3.711 MB / 190.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.001511/0.001511, allocations: 51.92 kB / 365.7 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09853/0.1, allocations: 52.14 MB / 417.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.006571/0.1066, allocations: 4.973 MB / 422.8 MB, free: 7.609 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002857/0.1095, allocations: 1.268 MB / 424 MB, free: 6.332 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004979/0.11, allocations: 15.94 kB / 424.1 MB, free: 6.316 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004128/0.1104, allocations: 130.7 kB / 424.2 MB, free: 6.188 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005499/0.1109, allocations: 257.7 kB / 424.4 MB, free: 5.934 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007913/0.1117, allocations: 311.4 kB / 424.7 MB, free: 5.629 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001364/0.1131, allocations: 1.091 MB / 425.8 MB, free: 4.535 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003918/0.1135, allocations: 190.5 kB / 426 MB, free: 4.324 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006161/0.1141, allocations: 438.5 kB / 426.4 MB, free: 3.895 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000586/0.1147, allocations: 478 kB / 426.9 MB, free: 3.426 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001317/0.1148, allocations: 88 kB / 427 MB, free: 3.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002118/0.115, allocations: 120 kB / 427.1 MB, free: 3.223 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001818/0.1152, allocations: 199.3 kB / 427.3 MB, free: 3.027 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004237/0.1156, allocations: 449.8 kB / 427.8 MB, free: 2.586 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001189/0.1168, allocations: 1.039 MB / 428.8 MB, free: 1.543 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.1168, allocations: 0 / 428.8 MB, free: 1.543 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.1168, allocations: 0 / 428.8 MB, free: 1.543 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.356e-05/0.1168, allocations: 3.938 kB / 428.8 MB, free: 1.539 MB / 350.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.002668/0.1195, allocations: 1.281 MB / 430.1 MB, free: 196 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.572e-05/0.1195, allocations: 8.031 kB / 430.1 MB, free: 188 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001514/0.1197, allocations: 106.7 kB / 430.2 MB, free: 72 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001928/0.1199, allocations: 103.5 kB / 430.3 MB, free: 15.97 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007715/0.1207, allocations: 491.9 kB / 430.8 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.141e-05/0.1207, allocations: 49.69 kB / 430.8 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001251/0.1208, allocations: 64.36 kB / 430.9 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001475/0.1223, allocations: 0.6554 MB / 431.5 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.081e-05/0.1223, allocations: 3.984 kB / 431.5 MB, free: 14.67 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.883e-05/0.1224, allocations: 27.94 kB / 431.6 MB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.701e-05/0.1224, allocations: 16 kB / 431.6 MB, free: 14.63 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001798/0.1242, allocations: 0.6961 MB / 432.3 MB, free: 13.93 MB / 366.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.004072/0.1283, allocations: 2.379 MB / 434.7 MB, free: 11.4 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001521/0.1298, allocations: 0.5592 MB / 435.2 MB, free: 10.83 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007851/0.1306, allocations: 318.5 kB / 435.5 MB, free: 10.52 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.17e-05/0.1306, allocations: 4.438 kB / 435.5 MB, free: 10.52 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009784/0.1316, allocations: 425.4 kB / 435.9 MB, free: 10.07 MB / 366.1 MB Notification: Performance of pre-optimization done (n=54): time 2.184e-06/0.1316, allocations: 0 / 435.9 MB, free: 10.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=94): time 0.2569/0.3885, allocations: 15.39 MB / 451.3 MB, free: 29.99 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.573e-05/0.3886, allocations: 145.3 kB / 451.5 MB, free: 29.83 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008773/0.3895, allocations: 0.5204 MB / 452 MB, free: 29.71 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001872/0.3897, allocations: 42.98 kB / 452 MB, free: 29.68 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002833/0.39, allocations: 399.3 kB / 452.4 MB, free: 29.5 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002682/0.3902, allocations: 326.7 kB / 452.8 MB, free: 29.33 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003753/0.3906, allocations: 187.8 kB / 452.9 MB, free: 29.3 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.3907, allocations: 387.9 kB / 453.3 MB, free: 28.99 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002125/0.3929, allocations: 0.7214 MB / 454 MB, free: 28.98 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002214/0.3951, allocations: 0.9585 MB / 455 MB, free: 28.62 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004293/0.3994, allocations: 1.691 MB / 456.7 MB, free: 27.82 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.275e-06/0.3994, allocations: 1.375 kB / 456.7 MB, free: 27.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02246/0.4218, allocations: 5.339 MB / 462 MB, free: 26.83 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.13e-05/0.4219, allocations: 61.28 kB / 462.1 MB, free: 26.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.12e-05/0.4219, allocations: 9.125 kB / 462.1 MB, free: 26.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03223/0.4542, allocations: 6.846 MB / 468.9 MB, free: 24.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000687/0.4548, allocations: 151.1 kB / 469.1 MB, free: 24.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005896/0.4607, allocations: 3.159 MB / 472.3 MB, free: 21.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001563/0.4623, allocations: 180.6 kB / 472.4 MB, free: 21.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001002/0.4624, allocations: 44.89 kB / 472.5 MB, free: 21.84 MB / 366.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.0003671/0.4628, allocations: 239 kB / 472.7 MB, free: 21.65 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001382/0.4629, allocations: 86.92 kB / 472.8 MB, free: 21.6 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01985/0.4828, allocations: 5.055 MB / 477.8 MB, free: 18.06 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.925e-05/0.4828, allocations: 13.69 kB / 477.9 MB, free: 18.05 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.196e-06/0.4828, allocations: 0 / 477.9 MB, free: 18.05 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.169e-05/0.4828, allocations: 3.984 kB / 477.9 MB, free: 18.05 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001305/0.4841, allocations: 1.102 MB / 479 MB, free: 16.94 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.754e-06/0.4841, allocations: 7.938 kB / 479 MB, free: 16.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004875/0.4846, allocations: 95.88 kB / 479.1 MB, free: 16.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03002/0.5146, allocations: 6.794 MB / 485.9 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002092/0.5148, allocations: 27.97 kB / 485.9 MB, free: 10.01 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004974/0.5198, allocations: 3.046 MB / 488.9 MB, free: 6.91 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.543e-06/0.5198, allocations: 8.266 kB / 488.9 MB, free: 6.906 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02122/0.541, allocations: 5.943 MB / 494.9 MB, free: 0.9414 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002079/0.5413, allocations: 145.2 kB / 495 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002487/0.5415, allocations: 19.98 kB / 495 MB, free: 0.7617 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001354/0.5429, allocations: 175.8 kB / 495.2 MB, free: 0.5898 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002624/0.5431, allocations: 96.86 kB / 495.3 MB, free: 0.4922 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001064/0.5432, allocations: 35.92 kB / 495.3 MB, free: 472 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003901/0.5436, allocations: 354.8 kB / 495.7 MB, free: 120 kB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5436, allocations: 0 / 495.7 MB, free: 120 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009617/0.5446, allocations: 257.9 kB / 495.9 MB, free: 15.86 MB / 382.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.02505/0.5696, allocations: 6.544 MB / 0.4907 GB, free: 9.301 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007078/0.5767, allocations: 2.106 MB / 0.4928 GB, free: 7.172 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.5767, allocations: 0 / 0.4928 GB, free: 7.172 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003548/0.5803, allocations: 1.02 MB / 0.4938 GB, free: 6.16 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008308/0.5811, allocations: 128.3 kB / 0.4939 GB, free: 6.039 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05553/0.6366, allocations: 15.88 MB / 0.5094 GB, free: 5.852 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006414/0.6373, allocations: 0.9507 MB / 0.5103 GB, free: 4.875 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003376/0.6376, allocations: 57.42 kB / 0.5104 GB, free: 4.82 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004147/0.638, allocations: 275.3 kB / 0.5106 GB, free: 4.555 MB / 398.1 MB Notification: Performance of SimCode: time 1.092e-06/0.638, allocations: 0 / 0.5106 GB, free: 4.555 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1187/0.7567, allocations: 29.67 MB / 0.5396 GB, free: 7.176 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.23/14.99, allocations: 7.828 kB / 0.5396 GB, free: 7.172 MB / 430.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: 18.103223387617618]