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.001144/0.001144, allocations: 109.7 kB / 17.06 MB, free: 5.996 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.001131/0.001131, allocations: 194.9 kB / 18.01 MB, free: 5.074 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.319/1.319, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001064/0.001064, allocations: 43.94 kB / 350.8 MB, free: 3.734 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2741/0.2752, allocations: 49.43 MB / 400.3 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.006379/0.2816, allocations: 4.954 MB / 405.2 MB, free: 3.844 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002521/0.2841, allocations: 1.264 MB / 406.5 MB, free: 2.57 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006669/0.2848, allocations: 11.94 kB / 406.5 MB, free: 2.559 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004755/0.2853, allocations: 126.7 kB / 406.6 MB, free: 2.434 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000797/0.2862, allocations: 261.7 kB / 406.9 MB, free: 2.176 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008024/0.287, allocations: 319.4 kB / 407.2 MB, free: 1.863 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001113/0.2881, allocations: 1.099 MB / 408.3 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003687/0.2885, allocations: 262.5 kB / 408.5 MB, free: 492 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003973/0.2889, allocations: 422.5 kB / 408.9 MB, free: 68 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00047/0.2894, allocations: 466.1 kB / 409.4 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001026/0.2895, allocations: 84 kB / 409.5 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001812/0.2897, allocations: 116 kB / 409.6 MB, free: 15.41 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001389/0.2898, allocations: 191.3 kB / 409.8 MB, free: 15.22 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003499/0.2902, allocations: 449.8 kB / 410.2 MB, free: 14.78 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009078/0.2911, allocations: 1.014 MB / 411.2 MB, free: 13.76 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.2911, allocations: 0 / 411.2 MB, free: 13.76 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2911, allocations: 0 / 411.2 MB, free: 13.76 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.074e-05/0.2911, 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.002321/0.2934, allocations: 1.277 MB / 412.5 MB, free: 12.42 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.2935, allocations: 8.031 kB / 412.5 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001161/0.2936, allocations: 114.6 kB / 412.6 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001478/0.2938, allocations: 92.38 kB / 412.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006343/0.2944, allocations: 495.9 kB / 413.2 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.045e-05/0.2945, allocations: 49.69 kB / 413.3 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.966e-05/0.2946, allocations: 68.31 kB / 413.3 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001297/0.2959, allocations: 0.6546 MB / 414 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.057e-05/0.2959, allocations: 0 / 414 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.79e-05/0.296, allocations: 31.98 kB / 414 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.641e-05/0.296, allocations: 16 kB / 414 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001623/0.2976, allocations: 0.696 MB / 414.7 MB, free: 10.16 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.003739/0.3014, allocations: 2.386 MB / 417.1 MB, free: 7.621 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001396/0.3028, allocations: 0.5827 MB / 417.7 MB, free: 7.027 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007103/0.3035, allocations: 333.9 kB / 418 MB, free: 6.699 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.329e-05/0.3036, allocations: 16.42 kB / 418 MB, free: 6.684 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009163/0.3045, allocations: 425.4 kB / 418.4 MB, free: 6.242 MB / 334.1 MB Notification: Performance of pre-optimization done (n=54): time 2.685e-06/0.3045, allocations: 0 / 418.4 MB, free: 6.242 MB / 334.1 MB Notification: Performance of matching and sorting (n=94): time 0.06445/0.369, allocations: 15.44 MB / 433.9 MB, free: 6.707 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.93e-05/0.3691, allocations: 137.5 kB / 434 MB, free: 6.543 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006301/0.3697, allocations: 0.5147 MB / 434.5 MB, free: 6.016 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001871/0.3699, allocations: 45.7 kB / 434.6 MB, free: 5.965 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002701/0.3702, allocations: 396.7 kB / 435 MB, free: 5.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003487/0.3706, allocations: 333.2 kB / 435.3 MB, free: 5.242 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004193/0.371, allocations: 182.6 kB / 435.5 MB, free: 5.059 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.3711, allocations: 386.7 kB / 435.8 MB, free: 4.672 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002032/0.3732, allocations: 0.7244 MB / 436.6 MB, free: 3.945 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002129/0.3753, allocations: 0.9551 MB / 437.5 MB, free: 2.906 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004119/0.3795, allocations: 1.693 MB / 439.2 MB, free: 1.117 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.594e-06/0.3795, allocations: 7.938 kB / 439.2 MB, free: 1.109 MB / 350.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02174/0.4012, allocations: 5.374 MB / 444.6 MB, free: 11.7 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.299e-05/0.4014, allocations: 67.52 kB / 444.7 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.802e-05/0.4014, allocations: 8 kB / 444.7 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03214/0.4335, allocations: 6.848 MB / 451.5 MB, free: 4.754 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007213/0.4343, allocations: 151.7 kB / 451.7 MB, free: 4.605 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006584/0.4409, allocations: 3.161 MB / 454.8 MB, free: 1.391 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001624/0.4426, allocations: 175.8 kB / 455 MB, free: 1.219 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001626/0.4428, allocations: 51.91 kB / 455.1 MB, free: 1.168 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.0004608/0.4432, allocations: 225.7 kB / 455.3 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001949/0.4434, allocations: 83.48 kB / 455.4 MB, free: 0.8555 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02076/0.4642, allocations: 5.107 MB / 460.5 MB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.858e-05/0.4643, allocations: 12 kB / 460.5 MB, free: 11.72 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.718e-06/0.4643, allocations: 0 / 460.5 MB, free: 11.72 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.399e-05/0.4643, allocations: 3.984 kB / 460.5 MB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001626/0.4659, allocations: 1.12 MB / 461.6 MB, free: 10.54 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-05/0.466, allocations: 0 / 461.6 MB, free: 10.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005323/0.4665, allocations: 95.81 kB / 461.7 MB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0312/0.4977, allocations: 6.797 MB / 468.5 MB, free: 3.637 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002105/0.498, allocations: 23.97 kB / 468.5 MB, free: 3.613 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005582/0.5036, allocations: 3.056 MB / 471.6 MB, free: 0.5 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.5036, allocations: 0 / 471.6 MB, free: 0.5 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02278/0.5264, allocations: 5.991 MB / 477.6 MB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002212/0.5267, allocations: 156.5 kB / 477.7 MB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002511/0.5269, allocations: 16 kB / 477.7 MB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001376/0.5283, allocations: 163.9 kB / 477.9 MB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000293/0.5286, allocations: 100.9 kB / 478 MB, free: 10.03 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001089/0.5287, allocations: 31.97 kB / 478 MB, free: 10 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004075/0.5291, allocations: 358.8 kB / 478.4 MB, free: 9.648 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5292, allocations: 4 kB / 478.4 MB, free: 9.645 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007985/0.53, allocations: 260 kB / 478.6 MB, free: 9.391 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.02309/0.5531, allocations: 6.572 MB / 485.2 MB, free: 2.777 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.006828/0.5599, allocations: 2.177 MB / 487.4 MB, free: 0.5742 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/0.56, allocations: 4 kB / 487.4 MB, free: 0.5703 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003479/0.5634, allocations: 1.101 MB / 488.5 MB, free: 15.47 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008561/0.5643, allocations: 130.4 kB / 488.6 MB, free: 15.34 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05132/0.6157, allocations: 15.98 MB / 0.4928 GB, free: 15.04 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004918/0.6162, allocations: 0.9468 MB / 0.4937 GB, free: 14.06 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003088/0.6165, allocations: 58.28 kB / 0.4937 GB, free: 14 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003393/0.6169, allocations: 279.3 kB / 0.494 GB, free: 13.73 MB / 430.1 MB Notification: Performance of SimCode: time 9.22e-07/0.6169, allocations: 0 / 0.494 GB, free: 13.73 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05654/0.6734, allocations: 29.53 MB / 0.5228 GB, free: 448 kB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.59/13.26, allocations: 11.81 kB / 0.5229 GB, free: 440 kB / 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