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) 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 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001093/0.001093, allocations: 108 kB / 16.92 MB, free: 6.332 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.001963/0.001963, allocations: 191.4 kB / 17.85 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.463/1.463, allocations: 222.9 MB / 241.6 MB, free: 15.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001136/0.001136, allocations: 50.88 kB / 300.7 MB, free: 5.723 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09383/0.09498, allocations: 49.43 MB / 350.2 MB, free: 4.277 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.006287/0.1013, allocations: 4.942 MB / 355.1 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002548/0.1039, allocations: 1.26 MB / 356.4 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005277/0.1045, allocations: 8 kB / 356.4 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003914/0.1049, allocations: 130.7 kB / 356.5 MB, free: 13.9 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006936/0.1056, allocations: 249.7 kB / 356.7 MB, free: 13.65 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009475/0.1066, allocations: 311.5 kB / 357 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001277/0.1079, allocations: 1.103 MB / 358.1 MB, free: 12.24 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004423/0.1083, allocations: 258.5 kB / 358.4 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006599/0.109, allocations: 414.6 kB / 358.8 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007069/0.1097, allocations: 466 kB / 359.3 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002069/0.1099, allocations: 88 kB / 359.3 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002993/0.1103, allocations: 116 kB / 359.5 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002016/0.1105, allocations: 195.3 kB / 359.6 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004997/0.111, allocations: 445.8 kB / 360.1 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009766/0.112, allocations: 1.001 MB / 361.1 MB, free: 9.27 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.112, allocations: 0 / 361.1 MB, free: 9.27 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.112, allocations: 0 / 361.1 MB, free: 9.27 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.782e-05/0.112, allocations: 0 / 361.1 MB, free: 9.27 MB / 302.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.002838/0.1149, allocations: 1.254 MB / 362.3 MB, free: 7.949 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/0.1149, allocations: 8.031 kB / 362.3 MB, free: 7.941 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001402/0.1151, allocations: 106.7 kB / 362.4 MB, free: 7.828 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001841/0.1153, allocations: 95.81 kB / 362.5 MB, free: 7.734 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006814/0.116, allocations: 487.4 kB / 363 MB, free: 7.219 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.574e-05/0.116, allocations: 45.69 kB / 363.1 MB, free: 7.172 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001099/0.1161, allocations: 64.38 kB / 363.1 MB, free: 7.109 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001463/0.1176, allocations: 0.6624 MB / 363.8 MB, free: 6.441 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.261e-05/0.1176, allocations: 4 kB / 363.8 MB, free: 6.438 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.582e-05/0.1177, allocations: 24 kB / 363.8 MB, free: 6.414 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.4e-05/0.1177, allocations: 19.94 kB / 363.8 MB, free: 6.395 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00172/0.1195, allocations: 0.696 MB / 364.5 MB, free: 5.699 MB / 302.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.004016/0.1235, allocations: 2.39 MB / 366.9 MB, free: 3.152 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001494/0.125, allocations: 0.5859 MB / 367.5 MB, free: 2.562 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007656/0.1258, allocations: 334 kB / 367.8 MB, free: 2.234 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.818e-05/0.1258, allocations: 8.422 kB / 367.8 MB, free: 2.223 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001012/0.1268, allocations: 424.4 kB / 368.2 MB, free: 1.785 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 2.575e-06/0.1269, allocations: 0 / 368.2 MB, free: 1.785 MB / 302.1 MB Notification: Performance of matching and sorting (n=94): time 0.2296/0.3564, allocations: 15.4 MB / 383.7 MB, free: 22.44 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.05e-05/0.3565, allocations: 149.4 kB / 383.8 MB, free: 22.27 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006689/0.3572, allocations: 0.5122 MB / 384.3 MB, free: 21.96 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002013/0.3574, allocations: 43.61 kB / 384.4 MB, free: 21.92 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002263/0.3577, allocations: 390.9 kB / 384.7 MB, free: 21.57 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002962/0.358, allocations: 315.5 kB / 385 MB, free: 21.31 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000385/0.3584, allocations: 185.4 kB / 385.2 MB, free: 21.2 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001052/0.3585, allocations: 391.5 kB / 385.6 MB, free: 20.82 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002009/0.3605, allocations: 0.7269 MB / 386.3 MB, free: 20.46 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002112/0.3626, allocations: 0.9595 MB / 387.3 MB, free: 19.82 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003923/0.3666, allocations: 1.692 MB / 389 MB, free: 18.78 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.538e-06/0.3666, allocations: 3.469 kB / 389 MB, free: 18.78 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02193/0.3885, allocations: 5.372 MB / 394.4 MB, free: 13.81 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.686e-05/0.3886, allocations: 71.33 kB / 394.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.715e-05/0.3887, allocations: 4 kB / 394.4 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03205/0.4207, allocations: 6.833 MB / 401.3 MB, free: 6.883 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007152/0.4215, allocations: 147.7 kB / 401.4 MB, free: 6.738 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00535/0.4268, allocations: 3.012 MB / 404.4 MB, free: 3.676 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001738/0.4286, allocations: 179.8 kB / 404.6 MB, free: 3.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001496/0.4288, allocations: 51.97 kB / 404.7 MB, free: 3.449 MB / 302.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.000469/0.4293, allocations: 228.1 kB / 404.9 MB, free: 3.219 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001947/0.4295, allocations: 79.06 kB / 405 MB, free: 3.141 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0221/0.4516, allocations: 5.102 MB / 410.1 MB, free: 14.02 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.629e-05/0.4516, allocations: 8 kB / 410.1 MB, free: 14.01 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.4516, allocations: 0 / 410.1 MB, free: 14.01 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.143e-05/0.4517, allocations: 7.922 kB / 410.1 MB, free: 14 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001628/0.4533, allocations: 1.106 MB / 411.2 MB, free: 12.88 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.047e-06/0.4533, allocations: 0 / 411.2 MB, free: 12.88 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005765/0.4539, allocations: 91.88 kB / 411.3 MB, free: 12.79 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03529/0.4892, allocations: 6.793 MB / 418.1 MB, free: 5.977 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002276/0.4895, allocations: 23.97 kB / 418.1 MB, free: 5.953 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006284/0.4958, allocations: 3.029 MB / 421.1 MB, free: 2.871 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.4958, allocations: 4 kB / 421.1 MB, free: 2.867 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02566/0.5215, allocations: 5.996 MB / 427.1 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002752/0.5218, allocations: 144.2 kB / 427.3 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002452/0.522, allocations: 20.94 kB / 427.3 MB, free: 12.66 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00154/0.5236, allocations: 167.8 kB / 427.4 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002781/0.5239, allocations: 96.88 kB / 427.5 MB, free: 12.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000101/0.524, allocations: 32.91 kB / 427.6 MB, free: 12.38 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004474/0.5244, allocations: 354.8 kB / 427.9 MB, free: 12.03 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5244, allocations: 6.844 kB / 427.9 MB, free: 12.03 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008504/0.5253, allocations: 260 kB / 428.2 MB, free: 11.77 MB / 334.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.02668/0.552, allocations: 6.554 MB / 434.7 MB, free: 5.195 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.006682/0.5587, allocations: 2.062 MB / 436.8 MB, free: 3.117 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.143e-06/0.5588, allocations: 7.938 kB / 436.8 MB, free: 3.109 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003834/0.5626, allocations: 1.089 MB / 437.9 MB, free: 2.023 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000855/0.5635, allocations: 129.6 kB / 438 MB, free: 1.902 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05823/0.6217, allocations: 16.2 MB / 454.2 MB, free: 1.395 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005977/0.6224, allocations: 0.9429 MB / 455.2 MB, free: 436 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003574/0.6227, allocations: 62.25 kB / 455.2 MB, free: 372 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003594/0.6231, allocations: 283.3 kB / 455.5 MB, free: 88 kB / 350.1 MB Notification: Performance of SimCode: time 8.42e-07/0.6231, allocations: 0 / 455.5 MB, free: 88 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06213/0.6853, allocations: 29.43 MB / 484.9 MB, free: 2.887 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.51/13.2, allocations: 19.56 kB / 484.9 MB, free: 2.871 MB / 382.1 MB (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.08 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) 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) Reference file matches