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.001223/0.001223, allocations: 114.2 kB / 17.07 MB, free: 5.961 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.001241/0.001241, allocations: 198.8 kB / 18 MB, free: 5.051 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.318/1.318, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001021/0.001021, allocations: 43.92 kB / 350.8 MB, free: 3.699 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2549/0.2559, allocations: 49.44 MB / 400.3 MB, free: 8.367 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.005857/0.2618, allocations: 4.933 MB / 405.2 MB, free: 3.809 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002372/0.2642, allocations: 1.268 MB / 406.5 MB, free: 2.531 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004949/0.2647, allocations: 12 kB / 406.5 MB, free: 2.52 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003334/0.2651, allocations: 130.7 kB / 406.6 MB, free: 2.391 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005297/0.2657, allocations: 241.7 kB / 406.8 MB, free: 2.152 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007026/0.2664, allocations: 315.4 kB / 407.1 MB, free: 1.844 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001058/0.2674, allocations: 1.099 MB / 408.2 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004162/0.2679, allocations: 266.5 kB / 408.5 MB, free: 468 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005235/0.2684, allocations: 410.6 kB / 408.9 MB, free: 56 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005449/0.269, allocations: 474.1 kB / 409.4 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001286/0.2691, allocations: 88 kB / 409.4 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002127/0.2693, allocations: 108 kB / 409.6 MB, free: 15.39 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001704/0.2695, allocations: 195.3 kB / 409.7 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004208/0.2699, allocations: 449.8 kB / 410.2 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001019/0.271, allocations: 1.006 MB / 411.2 MB, free: 13.75 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.271, allocations: 0 / 411.2 MB, free: 13.75 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.271, allocations: 4 kB / 411.2 MB, free: 13.75 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.767e-05/0.271, allocations: 0 / 411.2 MB, free: 13.75 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.002612/0.2736, allocations: 1.258 MB / 412.5 MB, free: 12.43 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.917e-05/0.2737, allocations: 12.03 kB / 412.5 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001194/0.2738, allocations: 106.7 kB / 412.6 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001499/0.274, allocations: 91.91 kB / 412.7 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006514/0.2746, allocations: 483.5 kB / 413.1 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.408e-05/0.2747, allocations: 53.67 kB / 413.2 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000106/0.2748, allocations: 68.38 kB / 413.3 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001388/0.2762, allocations: 0.6546 MB / 413.9 MB, free: 10.92 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.517e-05/0.2762, allocations: 0 / 413.9 MB, free: 10.92 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.276e-05/0.2763, allocations: 28 kB / 413.9 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.593e-05/0.2763, allocations: 15.94 kB / 413.9 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00169/0.278, allocations: 0.6961 MB / 414.6 MB, free: 10.18 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.00392/0.282, allocations: 2.382 MB / 417 MB, free: 7.645 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00145/0.2834, allocations: 0.5943 MB / 417.6 MB, free: 7.039 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007388/0.2842, allocations: 326 kB / 417.9 MB, free: 6.719 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.6e-05/0.2842, allocations: 12.42 kB / 418 MB, free: 6.707 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009114/0.2852, allocations: 421.5 kB / 418.4 MB, free: 6.27 MB / 334.1 MB Notification: Performance of pre-optimization done (n=54): time 2.735e-06/0.2852, allocations: 0 / 418.4 MB, free: 6.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=94): time 0.06727/0.3525, allocations: 15.41 MB / 433.8 MB, free: 6.762 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.312e-05/0.3526, allocations: 145.5 kB / 433.9 MB, free: 6.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006712/0.3533, allocations: 0.5224 MB / 434.4 MB, free: 6.055 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001835/0.3535, allocations: 49.64 kB / 434.5 MB, free: 6 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002742/0.3538, allocations: 391.8 kB / 434.9 MB, free: 5.609 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003119/0.3541, allocations: 315.4 kB / 435.2 MB, free: 5.297 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003579/0.3544, allocations: 190.5 kB / 435.4 MB, free: 5.105 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.3546, allocations: 386.7 kB / 435.7 MB, free: 4.719 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002041/0.3566, allocations: 0.7205 MB / 436.5 MB, free: 3.996 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00219/0.3589, allocations: 0.9629 MB / 437.4 MB, free: 2.949 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004148/0.363, allocations: 1.689 MB / 439.1 MB, free: 1.164 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.235e-06/0.3631, allocations: 8 kB / 439.1 MB, free: 1.156 MB / 350.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02318/0.3862, allocations: 5.358 MB / 444.5 MB, free: 11.77 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.551e-05/0.3864, allocations: 67.52 kB / 444.5 MB, free: 11.69 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.617e-05/0.3864, allocations: 8 kB / 444.6 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03275/0.4191, allocations: 6.829 MB / 451.4 MB, free: 4.836 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007647/0.4199, allocations: 155.7 kB / 451.5 MB, free: 4.684 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005935/0.4259, allocations: 3.008 MB / 454.5 MB, free: 1.621 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001667/0.4276, allocations: 183.8 kB / 454.7 MB, free: 1.441 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001623/0.4278, allocations: 51.91 kB / 454.8 MB, free: 1.391 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.0004733/0.4283, allocations: 221.7 kB / 455 MB, free: 1.164 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001952/0.4285, allocations: 82.97 kB / 455.1 MB, free: 1.082 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02207/0.4505, allocations: 5.103 MB / 460.2 MB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.991e-05/0.4506, allocations: 8 kB / 460.2 MB, free: 11.95 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.278e-05/0.4507, allocations: 0 / 460.2 MB, free: 11.95 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-05/0.4507, allocations: 3.984 kB / 460.2 MB, free: 11.95 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001944/0.4526, allocations: 1.108 MB / 461.3 MB, free: 10.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.094e-05/0.4527, allocations: 0 / 461.3 MB, free: 10.79 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000551/0.4532, allocations: 99.81 kB / 461.4 MB, free: 10.69 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03269/0.4859, allocations: 6.785 MB / 468.2 MB, free: 3.891 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001952/0.4862, allocations: 23.97 kB / 468.2 MB, free: 3.867 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005859/0.492, allocations: 3.04 MB / 471.2 MB, free: 0.7695 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.4921, allocations: 0 / 471.2 MB, free: 0.7695 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02371/0.5158, allocations: 5.983 MB / 477.2 MB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000197/0.516, allocations: 148.1 kB / 477.4 MB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001893/0.5162, allocations: 16 kB / 477.4 MB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001405/0.5176, allocations: 171.8 kB / 477.5 MB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002659/0.5179, allocations: 92.88 kB / 477.6 MB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.669e-05/0.518, allocations: 35.97 kB / 477.7 MB, free: 10.28 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004185/0.5184, allocations: 354.8 kB / 478 MB, free: 9.934 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5184, allocations: 4 kB / 478 MB, free: 9.93 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000767/0.5192, allocations: 256 kB / 478.3 MB, free: 9.68 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.02453/0.5437, allocations: 6.575 MB / 484.8 MB, free: 3.066 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.006253/0.55, allocations: 2.055 MB / 486.9 MB, free: 0.9844 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.5501, allocations: 0 / 486.9 MB, free: 0.9844 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003624/0.5537, allocations: 1.094 MB / 488 MB, free: 15.89 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008219/0.5546, allocations: 122.4 kB / 488.1 MB, free: 15.77 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05391/0.6085, allocations: 15.96 MB / 0.4923 GB, free: 15.48 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004843/0.609, allocations: 0.9507 MB / 0.4932 GB, free: 14.51 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003011/0.6093, allocations: 58.27 kB / 0.4932 GB, free: 14.45 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000333/0.6097, allocations: 275.3 kB / 0.4935 GB, free: 14.18 MB / 430.1 MB Notification: Performance of SimCode: time 5.21e-07/0.6097, allocations: 0 / 0.4935 GB, free: 14.18 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05672/0.6664, allocations: 29.78 MB / 0.5226 GB, free: 0.6328 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.97/13.64, allocations: 11.98 kB / 0.5226 GB, free: 0.6211 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