Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_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.001299/0.001299, allocations: 120.1 kB / 17.78 MB, free: 5.23 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.001323/0.001323, allocations: 198.8 kB / 20.73 MB, free: 2.289 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.468/1.468, allocations: 225.6 MB / 249.1 MB, free: 3.594 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.HeatingPNP_NORGate,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001613/0.001613, allocations: 47.92 kB / 365.7 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0973/0.09891, allocations: 52.14 MB / 417.8 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.006423/0.1053, allocations: 4.952 MB / 422.8 MB, free: 7.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002586/0.1079, allocations: 1.272 MB / 424 MB, free: 6.309 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003437/0.1083, allocations: 15.94 kB / 424 MB, free: 6.293 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002996/0.1086, allocations: 122.7 kB / 424.2 MB, free: 6.172 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004536/0.109, allocations: 261.6 kB / 424.4 MB, free: 5.914 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007055/0.1097, allocations: 311.4 kB / 424.7 MB, free: 5.609 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001093/0.1108, allocations: 1.099 MB / 425.8 MB, free: 4.508 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003132/0.1111, allocations: 190.5 kB / 426 MB, free: 4.297 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004913/0.1116, allocations: 430.5 kB / 426.4 MB, free: 3.875 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005735/0.1122, allocations: 478 kB / 426.9 MB, free: 3.406 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000126/0.1123, allocations: 88 kB / 427 MB, free: 3.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002088/0.1125, allocations: 115.9 kB / 427.1 MB, free: 3.207 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001782/0.1127, allocations: 203.3 kB / 427.3 MB, free: 3.008 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004085/0.1131, allocations: 449.8 kB / 427.7 MB, free: 2.566 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001102/0.1142, allocations: 1.039 MB / 428.8 MB, free: 1.523 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.1142, allocations: 0 / 428.8 MB, free: 1.523 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1142, allocations: 0 / 428.8 MB, free: 1.523 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.197e-05/0.1142, allocations: 0 / 428.8 MB, free: 1.523 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.002586/0.1168, allocations: 1.285 MB / 430.1 MB, free: 176 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/0.1169, allocations: 8.031 kB / 430.1 MB, free: 168 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001237/0.117, allocations: 106.7 kB / 430.2 MB, free: 52 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000176/0.1172, allocations: 96.42 kB / 430.3 MB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006973/0.1179, allocations: 0.4919 MB / 430.8 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.467e-05/0.1179, allocations: 45.69 kB / 430.8 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001113/0.118, allocations: 64.38 kB / 430.9 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001434/0.1194, allocations: 0.6585 MB / 431.5 MB, free: 14.65 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.988e-05/0.1195, allocations: 0 / 431.5 MB, free: 14.65 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.953e-05/0.1195, allocations: 35.92 kB / 431.6 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.336e-05/0.1196, allocations: 20 kB / 431.6 MB, free: 14.6 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001768/0.1213, allocations: 0.6922 MB / 432.3 MB, free: 13.91 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.004203/0.1255, allocations: 2.375 MB / 434.6 MB, free: 11.38 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001533/0.1271, allocations: 0.563 MB / 435.2 MB, free: 10.8 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007533/0.1278, allocations: 310.6 kB / 435.5 MB, free: 10.5 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.074e-05/0.1279, allocations: 20.34 kB / 435.5 MB, free: 10.48 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009828/0.1289, allocations: 421.5 kB / 435.9 MB, free: 10.04 MB / 366.1 MB Notification: Performance of pre-optimization done (n=54): time 4.608e-06/0.1289, allocations: 3.984 kB / 435.9 MB, free: 10.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=94): time 0.2389/0.3677, allocations: 15.38 MB / 451.3 MB, free: 29.85 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.809e-05/0.3678, allocations: 141.9 kB / 451.5 MB, free: 29.7 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009092/0.3687, allocations: 0.5222 MB / 452 MB, free: 29.57 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002418/0.369, allocations: 50.86 kB / 452 MB, free: 29.53 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003026/0.3693, allocations: 396.4 kB / 452.4 MB, free: 29.32 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003432/0.3696, allocations: 325.4 kB / 452.7 MB, free: 29.11 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003998/0.37, allocations: 190.1 kB / 452.9 MB, free: 29.08 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001104/0.3701, allocations: 386.2 kB / 453.3 MB, free: 28.77 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002046/0.3722, allocations: 0.7217 MB / 454 MB, free: 28.76 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002229/0.3744, allocations: 0.9534 MB / 455 MB, free: 28.47 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003946/0.3783, allocations: 1.691 MB / 456.7 MB, free: 27.67 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.897e-06/0.3784, allocations: 7.156 kB / 456.7 MB, free: 27.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02193/0.4003, allocations: 5.327 MB / 462 MB, free: 26.68 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.621e-05/0.4004, allocations: 65.38 kB / 462.1 MB, free: 26.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.83e-05/0.4004, allocations: 9.531 kB / 462.1 MB, free: 26.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03132/0.4317, allocations: 6.83 MB / 468.9 MB, free: 24.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006917/0.4324, allocations: 152.1 kB / 469.1 MB, free: 24.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004959/0.4373, allocations: 3.011 MB / 472.1 MB, free: 21.99 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001497/0.4388, allocations: 186.4 kB / 472.3 MB, free: 21.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.222e-05/0.4389, allocations: 44.23 kB / 472.3 MB, free: 21.9 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.0003372/0.4393, allocations: 233 kB / 472.5 MB, free: 21.7 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001344/0.4394, allocations: 84.14 kB / 472.6 MB, free: 21.66 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01956/0.459, allocations: 5.054 MB / 477.7 MB, free: 18.36 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.559e-05/0.459, allocations: 8 kB / 477.7 MB, free: 18.36 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.775e-06/0.459, allocations: 0 / 477.7 MB, free: 18.36 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.958e-05/0.459, allocations: 10.61 kB / 477.7 MB, free: 18.35 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001126/0.4601, allocations: 1.1 MB / 478.8 MB, free: 17.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.242e-06/0.4601, allocations: 8.438 kB / 478.8 MB, free: 17.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004811/0.4606, allocations: 95.88 kB / 478.9 MB, free: 17.13 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02893/0.4895, allocations: 6.783 MB / 485.7 MB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002454/0.4898, allocations: 24.48 kB / 485.7 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004808/0.4946, allocations: 3.034 MB / 488.7 MB, free: 7.23 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/0.4946, allocations: 0.6875 kB / 488.7 MB, free: 7.23 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02101/0.5156, allocations: 5.946 MB / 494.7 MB, free: 1.266 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001677/0.5158, allocations: 149.3 kB / 494.8 MB, free: 1.102 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001862/0.516, allocations: 20 kB / 494.8 MB, free: 1.082 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001258/0.5172, allocations: 167.8 kB / 495 MB, free: 0.918 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002367/0.5175, allocations: 96.86 kB / 495.1 MB, free: 0.8242 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.496e-05/0.5175, allocations: 32.55 kB / 495.1 MB, free: 0.793 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003061/0.5179, allocations: 356.6 kB / 495.5 MB, free: 460 kB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5179, allocations: 5.312 kB / 495.5 MB, free: 456 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006951/0.5185, allocations: 260 kB / 495.7 MB, free: 196 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.0251/0.5436, allocations: 6.537 MB / 0.4905 GB, free: 9.629 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006903/0.5505, allocations: 1.972 MB / 0.4924 GB, free: 7.633 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/0.5506, allocations: 1.375 kB / 0.4924 GB, free: 7.633 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003959/0.5545, allocations: 1.01 MB / 0.4934 GB, free: 6.629 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00105/0.5556, allocations: 134.7 kB / 0.4935 GB, free: 6.504 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05774/0.6133, allocations: 15.9 MB / 0.5091 GB, free: 6.312 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007525/0.6141, allocations: 0.9507 MB / 0.51 GB, free: 5.336 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003456/0.6144, allocations: 57.98 kB / 0.51 GB, free: 5.281 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004367/0.6148, allocations: 280.9 kB / 0.5103 GB, free: 5.012 MB / 398.1 MB Notification: Performance of SimCode: time 1.222e-06/0.6148, allocations: 4 kB / 0.5103 GB, free: 5.008 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1656/0.7804, allocations: 29.91 MB / 0.5395 GB, free: 7.383 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.29/15.07, allocations: 4.938 kB / 0.5395 GB, free: 7.379 MB / 430.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_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_HeatingPNP_NORGate.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingPNP_NORGate/HeatingPNP_NORGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_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.015695893205702]