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.001056/0.001056, allocations: 112.8 kB / 17.06 MB, free: 5.969 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.0009802/0.0009804, allocations: 200 kB / 18.01 MB, free: 5.047 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.347/1.347, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001024/0.001024, allocations: 39.94 kB / 350.8 MB, free: 3.711 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2801/0.2812, allocations: 49.43 MB / 400.3 MB, free: 8.383 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.006575/0.2878, allocations: 4.935 MB / 405.2 MB, free: 3.832 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002767/0.2906, allocations: 1.26 MB / 406.4 MB, free: 2.562 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007163/0.2913, allocations: 15.94 kB / 406.5 MB, free: 2.547 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004551/0.2918, allocations: 118.7 kB / 406.6 MB, free: 2.43 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009078/0.2928, allocations: 265.7 kB / 406.8 MB, free: 2.168 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001035/0.2938, allocations: 315.5 kB / 407.1 MB, free: 1.859 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001538/0.2954, allocations: 1.111 MB / 408.3 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004608/0.2959, allocations: 254.5 kB / 408.5 MB, free: 484 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007198/0.2966, allocations: 422.5 kB / 408.9 MB, free: 60 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006805/0.2973, allocations: 470 kB / 409.4 MB, free: 15.6 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001949/0.2975, allocations: 91.94 kB / 409.5 MB, free: 15.51 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002648/0.2978, allocations: 108 kB / 409.6 MB, free: 15.4 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001754/0.298, allocations: 195.3 kB / 409.8 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005554/0.2985, allocations: 445.8 kB / 410.2 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001143/0.2997, allocations: 1.011 MB / 411.2 MB, free: 13.76 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.2997, allocations: 0 / 411.2 MB, free: 13.76 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2997, allocations: 0 / 411.2 MB, free: 13.76 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.288e-05/0.2997, allocations: 0 / 411.2 MB, free: 13.76 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.002914/0.3027, allocations: 1.289 MB / 412.5 MB, free: 12.4 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.53e-05/0.3027, allocations: 12.03 kB / 412.5 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001448/0.3029, allocations: 106.7 kB / 412.6 MB, free: 12.28 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002052/0.3031, allocations: 100.3 kB / 412.7 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008613/0.304, allocations: 491.9 kB / 413.2 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.809e-05/0.304, allocations: 53.67 kB / 413.2 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001153/0.3041, allocations: 60.38 kB / 413.3 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001512/0.3057, allocations: 0.6585 MB / 414 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.34e-05/0.3057, allocations: 0 / 414 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.391e-05/0.3058, allocations: 28 kB / 414 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.491e-05/0.3058, allocations: 16 kB / 414 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00172/0.3075, allocations: 0.6961 MB / 414.7 MB, free: 10.14 MB / 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.004385/0.3119, allocations: 2.383 MB / 417.1 MB, free: 7.609 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001497/0.3134, allocations: 0.5905 MB / 417.7 MB, free: 7.008 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007667/0.3142, allocations: 330 kB / 418 MB, free: 6.684 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.714e-05/0.3143, allocations: 12.42 kB / 418 MB, free: 6.672 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009727/0.3153, allocations: 425.4 kB / 418.4 MB, free: 6.23 MB / 334.1 MB Notification: Performance of pre-optimization done (n=54): time 3.457e-06/0.3153, allocations: 0 / 418.4 MB, free: 6.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=94): time 0.06863/0.3839, allocations: 15.43 MB / 433.9 MB, free: 6.707 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001045/0.3841, allocations: 145.5 kB / 434 MB, free: 6.535 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006536/0.3847, allocations: 0.5186 MB / 434.5 MB, free: 6.004 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001781/0.3849, allocations: 41.7 kB / 434.6 MB, free: 5.957 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002809/0.3852, allocations: 400.7 kB / 434.9 MB, free: 5.559 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003499/0.3856, allocations: 333.1 kB / 435.3 MB, free: 5.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003755/0.3859, allocations: 186.6 kB / 435.5 MB, free: 5.043 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001612/0.3861, allocations: 386.7 kB / 435.8 MB, free: 4.656 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002041/0.3882, allocations: 0.7205 MB / 436.6 MB, free: 3.934 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002118/0.3903, allocations: 0.9629 MB / 437.5 MB, free: 2.887 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003965/0.3943, allocations: 1.693 MB / 439.2 MB, free: 1.098 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.099e-05/0.3943, allocations: 4 kB / 439.2 MB, free: 1.094 MB / 350.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02214/0.4165, allocations: 5.363 MB / 444.6 MB, free: 11.7 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.776e-05/0.4166, allocations: 67.39 kB / 444.6 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.688e-05/0.4166, allocations: 4 kB / 444.6 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03319/0.4498, allocations: 6.833 MB / 451.5 MB, free: 4.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007218/0.4505, allocations: 151.7 kB / 451.6 MB, free: 4.621 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006218/0.4568, allocations: 3.017 MB / 454.6 MB, free: 1.551 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001725/0.4585, allocations: 183.8 kB / 454.8 MB, free: 1.371 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000172/0.4587, allocations: 51.91 kB / 454.9 MB, free: 1.32 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.0005465/0.4593, allocations: 223.3 kB / 455.1 MB, free: 1.094 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000213/0.4595, allocations: 83.48 kB / 455.2 MB, free: 1.012 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02122/0.4807, allocations: 5.1 MB / 460.3 MB, free: 11.89 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-05/0.4808, allocations: 12 kB / 460.3 MB, free: 11.88 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/0.4808, allocations: 4 kB / 460.3 MB, free: 11.88 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.042e-05/0.4809, allocations: 3.984 kB / 460.3 MB, free: 11.88 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001723/0.4826, allocations: 1.116 MB / 461.4 MB, free: 10.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.295e-06/0.4826, allocations: 0 / 461.4 MB, free: 10.71 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005386/0.4832, allocations: 95.81 kB / 461.5 MB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03222/0.5154, allocations: 6.785 MB / 468.3 MB, free: 3.812 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002572/0.5157, allocations: 27.97 kB / 468.3 MB, free: 3.785 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006083/0.5218, allocations: 3.036 MB / 471.3 MB, free: 0.6914 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.5218, allocations: 0 / 471.3 MB, free: 0.6914 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02386/0.5457, allocations: 5.984 MB / 477.3 MB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000362/0.5461, allocations: 152.5 kB / 477.5 MB, free: 10.51 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002687/0.5464, allocations: 16 kB / 477.5 MB, free: 10.49 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001423/0.5478, allocations: 171.8 kB / 477.7 MB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002889/0.5481, allocations: 100.8 kB / 477.8 MB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001074/0.5483, allocations: 35.97 kB / 477.8 MB, free: 10.19 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006415/0.5489, allocations: 354.8 kB / 478.1 MB, free: 9.844 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5489, allocations: 0 / 478.1 MB, free: 9.844 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009811/0.5499, allocations: 256 kB / 478.4 MB, free: 9.594 MB / 398.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.02447/0.5744, allocations: 6.575 MB / 485 MB, free: 2.977 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.006419/0.5808, allocations: 2.052 MB / 487 MB, free: 0.8984 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.5809, allocations: 448 / 487 MB, free: 0.8984 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003639/0.5845, allocations: 1.089 MB / 488.1 MB, free: 15.81 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009151/0.5855, allocations: 137.8 kB / 488.2 MB, free: 15.68 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05485/0.6403, allocations: 15.99 MB / 0.4924 GB, free: 15.35 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006181/0.641, allocations: 0.9506 MB / 0.4933 GB, free: 14.38 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003231/0.6413, allocations: 58.28 kB / 0.4934 GB, free: 14.32 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003682/0.6417, allocations: 271.3 kB / 0.4937 GB, free: 14.05 MB / 430.1 MB Notification: Performance of SimCode: time 6.71e-07/0.6417, allocations: 0 / 0.4937 GB, free: 14.05 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05886/0.7006, allocations: 29.79 MB / 0.5228 GB, free: 0.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.14/13.84, allocations: 0 / 0.5228 GB, free: 0.5 MB / 446.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