Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,fileNamePrefix="Modelica_3_2_3_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.002042/0.002042, allocations: 110.5 kB / 17.73 MB, free: 5.359 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.002883/0.002883, allocations: 187.1 kB / 18.66 MB, free: 4.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.632/1.632, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00148/0.00148, allocations: 63.91 kB / 328 MB, free: 3.809 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1087, allocations: 46.61 MB / 374.7 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.006613/0.1154, allocations: 4.7 MB / 379.4 MB, free: 368 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2717/0.3871, allocations: 1.27 MB / 380.6 MB, free: 9.184 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004856/0.3877, allocations: 12.92 kB / 380.6 MB, free: 9.184 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002747/0.388, allocations: 114.5 kB / 380.8 MB, free: 9.184 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005596/0.3885, allocations: 255.4 kB / 381 MB, free: 9.078 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009289/0.3895, allocations: 303 kB / 381.3 MB, free: 9.066 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001402/0.3909, allocations: 1.049 MB / 382.3 MB, free: 8.859 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005351/0.3914, allocations: 264.9 kB / 382.6 MB, free: 8.805 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008692/0.3923, allocations: 413.9 kB / 383 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007361/0.393, allocations: 452.9 kB / 383.5 MB, free: 8.609 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001631/0.3932, allocations: 84.34 kB / 383.5 MB, free: 8.609 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002949/0.3935, allocations: 113.3 kB / 383.6 MB, free: 8.602 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001751/0.3937, allocations: 186.2 kB / 383.8 MB, free: 8.48 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004678/0.3942, allocations: 427.9 kB / 384.2 MB, free: 8.227 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001357/0.3955, allocations: 0.9759 MB / 385.2 MB, free: 7.863 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.3956, allocations: 0 / 385.2 MB, free: 7.863 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3956, allocations: 4 kB / 385.2 MB, free: 7.859 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.984e-05/0.3956, allocations: 1.219 kB / 385.2 MB, free: 7.859 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 152 * Number of variables: 152 Notification: Performance of Generate backend data structure: time 0.00255/0.3982, allocations: 1.236 MB / 386.5 MB, free: 7.012 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.244e-05/0.3982, allocations: 9 kB / 386.5 MB, free: 7.012 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001241/0.3983, allocations: 106.5 kB / 386.6 MB, free: 6.934 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001852/0.3985, allocations: 93.11 kB / 386.7 MB, free: 6.887 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008142/0.3994, allocations: 473 kB / 387.1 MB, free: 6.527 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.173e-05/0.3994, allocations: 47.38 kB / 387.2 MB, free: 6.504 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001211/0.3996, allocations: 62.44 kB / 387.2 MB, free: 6.484 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001489/0.401, allocations: 0.6372 MB / 387.9 MB, free: 6.242 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.359e-05/0.4011, allocations: 1.188 kB / 387.9 MB, free: 6.242 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.118e-05/0.4012, allocations: 25.8 kB / 387.9 MB, free: 6.223 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.052e-05/0.4012, allocations: 15.86 kB / 387.9 MB, free: 6.223 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001781/0.403, allocations: 0.6742 MB / 388.6 MB, free: 6.02 MB / 318.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.004027/0.407, allocations: 2.317 MB / 390.9 MB, free: 4.582 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001653/0.4087, allocations: 0.579 MB / 391.5 MB, free: 4.363 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008147/0.4095, allocations: 339.1 kB / 391.8 MB, free: 4.238 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.881e-05/0.4096, allocations: 11.39 kB / 391.8 MB, free: 4.234 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001019/0.4106, allocations: 433.9 kB / 392.2 MB, free: 4.039 MB / 318.1 MB Notification: Performance of pre-optimization done (n=54): time 3.927e-06/0.4106, allocations: 0 / 392.2 MB, free: 4.039 MB / 318.1 MB Notification: Performance of matching and sorting (n=94): time 0.07026/0.4809, allocations: 15.43 MB / 407.7 MB, free: 13.46 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00016/0.4811, allocations: 144.2 kB / 407.8 MB, free: 13.3 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009234/0.482, allocations: 498.9 kB / 408.3 MB, free: 12.8 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002884/0.4824, allocations: 41.7 kB / 408.4 MB, free: 12.75 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003834/0.4827, allocations: 372.8 kB / 408.7 MB, free: 12.38 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005207/0.4833, allocations: 326.9 kB / 409 MB, free: 12.07 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005556/0.4838, allocations: 186.5 kB / 409.2 MB, free: 11.88 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002162/0.4841, allocations: 382.8 kB / 409.6 MB, free: 11.49 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002385/0.4865, allocations: 0.7202 MB / 410.3 MB, free: 10.77 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002428/0.4889, allocations: 0.9264 MB / 411.2 MB, free: 9.766 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004421/0.4934, allocations: 1.658 MB / 412.9 MB, free: 8.023 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.627e-05/0.4934, allocations: 4 kB / 412.9 MB, free: 8.02 MB / 334.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02237/0.5158, allocations: 5.342 MB / 418.2 MB, free: 2.656 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000111/0.516, allocations: 63.39 kB / 418.3 MB, free: 2.582 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.046e-05/0.516, allocations: 8 kB / 418.3 MB, free: 2.574 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03354/0.5495, allocations: 6.828 MB / 425.1 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007295/0.5503, allocations: 143.7 kB / 425.3 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006423/0.5568, allocations: 3.021 MB / 428.3 MB, free: 8.523 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001894/0.5587, allocations: 171.9 kB / 428.5 MB, free: 8.355 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002474/0.559, allocations: 51.97 kB / 428.5 MB, free: 8.305 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (50): * Single equations (assignments): 46 * 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.000687/0.5597, allocations: 217.7 kB / 428.7 MB, free: 8.082 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003279/0.56, allocations: 79.53 kB / 428.8 MB, free: 8.004 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02196/0.582, allocations: 5.104 MB / 433.9 MB, free: 2.891 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.666e-05/0.5821, allocations: 8 kB / 433.9 MB, free: 2.883 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.255e-05/0.5821, allocations: 4 kB / 433.9 MB, free: 2.879 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-05/0.5821, allocations: 3.984 kB / 433.9 MB, free: 2.875 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002424/0.5846, allocations: 1.095 MB / 435 MB, free: 1.746 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.336e-05/0.5846, allocations: 3.984 kB / 435 MB, free: 1.742 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006172/0.5852, allocations: 91.89 kB / 435.1 MB, free: 1.652 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03238/0.6176, allocations: 6.79 MB / 441.9 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002811/0.618, allocations: 23.97 kB / 441.9 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005936/0.6239, allocations: 3.032 MB / 445 MB, free: 7.75 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.462e-06/0.624, allocations: 7.938 kB / 445 MB, free: 7.742 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02402/0.648, allocations: 5.988 MB / 451 MB, free: 1.73 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004794/0.6485, allocations: 148.5 kB / 451.1 MB, free: 1.566 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004754/0.649, allocations: 21.5 kB / 451.1 MB, free: 1.547 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001636/0.6507, allocations: 167.8 kB / 451.3 MB, free: 1.383 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003574/0.6511, allocations: 100.9 kB / 451.4 MB, free: 1.285 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000141/0.6512, allocations: 33.47 kB / 451.4 MB, free: 1.254 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004565/0.6517, allocations: 334.9 kB / 451.7 MB, free: 0.9297 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.6517, allocations: 0 / 451.7 MB, free: 0.9297 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00108/0.6528, allocations: 256 kB / 452 MB, free: 0.6797 MB / 366.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.02495/0.6777, allocations: 6.563 MB / 458.6 MB, free: 10.09 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006477/0.6843, allocations: 2.045 MB / 460.6 MB, free: 8.02 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.863e-06/0.6843, allocations: 0 / 460.6 MB, free: 8.02 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003616/0.6879, allocations: 1.085 MB / 461.7 MB, free: 6.938 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001017/0.689, allocations: 131.3 kB / 461.8 MB, free: 6.812 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.055/0.744, allocations: 15.78 MB / 477.6 MB, free: 6.785 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006632/0.7447, allocations: 0.9389 MB / 478.5 MB, free: 5.816 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004051/0.7451, allocations: 46.09 kB / 478.6 MB, free: 5.77 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004828/0.7456, allocations: 259.3 kB / 478.8 MB, free: 5.516 MB / 398.1 MB Notification: Performance of SimCode: time 2.334e-06/0.7457, allocations: 8 kB / 478.8 MB, free: 5.508 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06726/0.8129, allocations: 29.37 MB / 0.4963 GB, free: 8.055 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.29/15.1, allocations: 7.922 kB / 0.4963 GB, free: 8.047 MB / 430.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/HeatingPNP_NORGate/HeatingPNP_NORGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches