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) 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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001106/0.001106, allocations: 108.8 kB / 17.06 MB, free: 6.129 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.001133/0.001133, allocations: 191 kB / 18 MB, free: 5.207 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.369/1.369, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 43.92 kB / 350.8 MB, free: 3.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3092/0.3104, allocations: 49.44 MB / 400.3 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.005137/0.3156, allocations: 4.942 MB / 405.2 MB, free: 3.855 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001948/0.3176, allocations: 1.272 MB / 406.5 MB, free: 2.574 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002795/0.3179, allocations: 15.94 kB / 406.5 MB, free: 2.559 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002506/0.3181, allocations: 118.7 kB / 406.6 MB, free: 2.441 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004374/0.3186, allocations: 253.6 kB / 406.8 MB, free: 2.191 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006124/0.3192, allocations: 311.5 kB / 407.2 MB, free: 1.887 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009166/0.3201, allocations: 1.111 MB / 408.3 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000345/0.3205, allocations: 258.5 kB / 408.5 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003838/0.3209, allocations: 410.6 kB / 408.9 MB, free: 96 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004799/0.3214, allocations: 466.1 kB / 409.4 MB, free: 15.63 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001122/0.3215, allocations: 88 kB / 409.5 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001785/0.3217, allocations: 112 kB / 409.6 MB, free: 15.44 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001692/0.3219, allocations: 195.3 kB / 409.8 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003772/0.3222, allocations: 453.8 kB / 410.2 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008885/0.3231, allocations: 1.006 MB / 411.2 MB, free: 13.8 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.3232, allocations: 4 kB / 411.2 MB, free: 13.79 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3232, allocations: 0 / 411.2 MB, free: 13.79 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.181e-05/0.3232, allocations: 0 / 411.2 MB, free: 13.79 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.002359/0.3255, allocations: 1.25 MB / 412.5 MB, free: 12.47 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.3256, allocations: 12.03 kB / 412.5 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001129/0.3257, allocations: 106.7 kB / 412.6 MB, free: 12.35 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001613/0.3259, allocations: 91.91 kB / 412.7 MB, free: 12.26 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006911/0.3266, allocations: 495.5 kB / 413.2 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.791e-05/0.3266, allocations: 45.69 kB / 413.2 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001062/0.3267, allocations: 64.38 kB / 413.3 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001294/0.328, allocations: 0.6585 MB / 413.9 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.99e-05/0.3281, allocations: 0 / 413.9 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.191e-05/0.3281, allocations: 28 kB / 413.9 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.119e-05/0.3282, allocations: 15.94 kB / 414 MB, free: 10.92 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001708/0.3299, allocations: 0.6922 MB / 414.7 MB, free: 10.23 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.003736/0.3336, allocations: 2.382 MB / 417 MB, free: 7.691 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001468/0.3351, allocations: 0.5943 MB / 417.6 MB, free: 7.086 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007139/0.3358, allocations: 330 kB / 417.9 MB, free: 6.762 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.45e-05/0.3359, allocations: 12.44 kB / 418 MB, free: 6.75 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008978/0.3368, allocations: 417.5 kB / 418.4 MB, free: 6.316 MB / 334.1 MB Notification: Performance of pre-optimization done (n=54): time 2.965e-06/0.3368, allocations: 0 / 418.4 MB, free: 6.316 MB / 334.1 MB Notification: Performance of matching and sorting (n=94): time 0.06794/0.4048, allocations: 15.43 MB / 433.8 MB, free: 6.793 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.715e-05/0.4049, allocations: 145.5 kB / 433.9 MB, free: 6.621 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006353/0.4055, allocations: 0.5185 MB / 434.5 MB, free: 6.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001788/0.4057, allocations: 53.7 kB / 434.5 MB, free: 6.031 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002951/0.406, allocations: 379.8 kB / 434.9 MB, free: 5.652 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003115/0.4063, allocations: 319.3 kB / 435.2 MB, free: 5.336 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003713/0.4067, allocations: 186.5 kB / 435.4 MB, free: 5.148 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001496/0.4069, allocations: 394.7 kB / 435.8 MB, free: 4.754 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00204/0.4089, allocations: 0.7166 MB / 436.5 MB, free: 4.035 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002172/0.4111, allocations: 0.9551 MB / 437.4 MB, free: 2.996 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004055/0.4152, allocations: 1.693 MB / 439.1 MB, free: 1.207 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.13e-06/0.4152, allocations: 4 kB / 439.1 MB, free: 1.203 MB / 350.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02285/0.4381, allocations: 5.378 MB / 444.5 MB, free: 11.79 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.376e-05/0.4382, allocations: 65.89 kB / 444.6 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.5e-05/0.4382, allocations: 8 kB / 444.6 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03355/0.4718, allocations: 6.845 MB / 451.4 MB, free: 4.852 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007729/0.4726, allocations: 155.7 kB / 451.6 MB, free: 4.699 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007028/0.4797, allocations: 3.157 MB / 454.7 MB, free: 1.488 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001746/0.4815, allocations: 171.9 kB / 454.9 MB, free: 1.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001724/0.4817, allocations: 59.91 kB / 455 MB, free: 1.262 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.0005427/0.4822, allocations: 217.7 kB / 455.2 MB, free: 1.039 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002427/0.4825, allocations: 86.97 kB / 455.3 MB, free: 0.9531 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02184/0.5043, allocations: 5.107 MB / 460.4 MB, free: 11.83 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-05/0.5044, allocations: 8 kB / 460.4 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.847e-06/0.5044, allocations: 0 / 460.4 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.352e-05/0.5044, allocations: 3.984 kB / 460.4 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001736/0.5062, allocations: 1.108 MB / 461.5 MB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.037e-06/0.5062, allocations: 0 / 461.5 MB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005692/0.5068, allocations: 99.81 kB / 461.6 MB, free: 10.56 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03234/0.5391, allocations: 6.793 MB / 468.4 MB, free: 3.75 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000252/0.5394, allocations: 19.98 kB / 468.4 MB, free: 3.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006014/0.5455, allocations: 3.063 MB / 471.5 MB, free: 0.6094 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.5455, allocations: 0 / 471.5 MB, free: 0.6094 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02376/0.5693, allocations: 5.983 MB / 477.4 MB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002168/0.5695, allocations: 148.1 kB / 477.6 MB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002201/0.5697, allocations: 16 kB / 477.6 MB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001447/0.5712, allocations: 167.8 kB / 477.8 MB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002753/0.5715, allocations: 96.88 kB / 477.9 MB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001152/0.5716, allocations: 31.97 kB / 477.9 MB, free: 10.12 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000439/0.5721, allocations: 362.8 kB / 478.2 MB, free: 9.77 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5721, allocations: 0 / 478.2 MB, free: 9.77 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008323/0.5729, allocations: 256 kB / 478.5 MB, free: 9.52 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.02475/0.5977, allocations: 6.573 MB / 485.1 MB, free: 2.906 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007219/0.6049, allocations: 2.185 MB / 487.3 MB, free: 0.6953 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.451e-06/0.605, allocations: 4.062 kB / 487.3 MB, free: 0.6914 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003739/0.6087, allocations: 1.097 MB / 488.4 MB, free: 15.59 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009275/0.6097, allocations: 130.5 kB / 488.5 MB, free: 15.46 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05447/0.6642, allocations: 15.94 MB / 0.4926 GB, free: 15.2 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004857/0.6647, allocations: 0.9546 MB / 0.4935 GB, free: 14.21 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003051/0.665, allocations: 58.28 kB / 0.4936 GB, free: 14.16 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003372/0.6654, allocations: 275.3 kB / 0.4938 GB, free: 13.89 MB / 430.1 MB Notification: Performance of SimCode: time 7.02e-07/0.6654, allocations: 0 / 0.4938 GB, free: 13.89 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05816/0.7235, allocations: 29.54 MB / 0.5227 GB, free: 0.5938 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.95/13.67, allocations: 4.062 kB / 0.5227 GB, free: 0.5898 MB / 446.1 MB (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.08 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) 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) Reference file matches