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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001817/0.001817, allocations: 112.2 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002169/0.002169, allocations: 189.9 kB / 23.72 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.407/1.407, allocations: 225.6 MB / 252.5 MB, free: 13.05 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00154/0.00154, allocations: 43.92 kB / 370.5 MB, free: 9.906 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2464/0.2479, allocations: 52.18 MB / 422.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.006189/0.2541, allocations: 4.983 MB / 427.6 MB, free: 9.586 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0028/0.2569, allocations: 1.276 MB / 428.9 MB, free: 8.301 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005141/0.2574, allocations: 11.94 kB / 428.9 MB, free: 8.289 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003806/0.2578, allocations: 126.7 kB / 429 MB, free: 8.164 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005894/0.2584, allocations: 261.6 kB / 429.3 MB, free: 7.906 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007875/0.2592, allocations: 315.5 kB / 429.6 MB, free: 7.598 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001196/0.2604, allocations: 1.091 MB / 430.7 MB, free: 6.504 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003336/0.2607, allocations: 191 kB / 430.9 MB, free: 6.301 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000554/0.2612, allocations: 430.5 kB / 431.3 MB, free: 5.879 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006439/0.2619, allocations: 482 kB / 431.8 MB, free: 5.406 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000141/0.262, allocations: 92 kB / 431.9 MB, free: 5.316 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002333/0.2623, allocations: 116 kB / 432 MB, free: 5.203 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002083/0.2625, allocations: 199.3 kB / 432.2 MB, free: 5.008 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004678/0.2629, allocations: 453.8 kB / 432.6 MB, free: 4.562 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001146/0.2641, allocations: 1.035 MB / 433.6 MB, free: 3.527 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2641, allocations: 4 kB / 433.6 MB, free: 3.523 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2641, allocations: 0 / 433.6 MB, free: 3.523 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.552e-05/0.2641, allocations: 0 / 433.6 MB, free: 3.523 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.002711/0.2668, allocations: 1.213 MB / 434.9 MB, free: 2.262 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.2669, allocations: 15.97 kB / 434.9 MB, free: 2.246 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001317/0.267, allocations: 106.7 kB / 435 MB, free: 2.133 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001751/0.2672, allocations: 96.38 kB / 435.1 MB, free: 2.039 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007699/0.2679, allocations: 430.1 kB / 435.5 MB, free: 1.59 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.362e-05/0.268, allocations: 41.69 kB / 435.5 MB, free: 1.547 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000111/0.2681, allocations: 68.38 kB / 435.6 MB, free: 1.48 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001424/0.2695, allocations: 0.6468 MB / 436.2 MB, free: 0.832 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.031e-05/0.2695, allocations: 0 / 436.2 MB, free: 0.832 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.71e-05/0.2696, allocations: 31.98 kB / 436.3 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.585e-05/0.2696, allocations: 20 kB / 436.3 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001722/0.2713, allocations: 0.696 MB / 437 MB, free: 84 kB / 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.004269/0.2756, allocations: 2.323 MB / 439.3 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001485/0.2771, allocations: 0.5514 MB / 439.9 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007265/0.2778, allocations: 310 kB / 440.2 MB, free: 12.74 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.503e-05/0.2779, allocations: 12.42 kB / 440.2 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000988/0.2789, allocations: 432.4 kB / 440.6 MB, free: 12.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 2.235e-06/0.2789, allocations: 0 / 440.6 MB, free: 12.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=94): time 0.07102/0.3499, allocations: 15.23 MB / 455.8 MB, free: 13 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00011/0.35, allocations: 145.5 kB / 456 MB, free: 12.82 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000715/0.3507, allocations: 0.5225 MB / 456.5 MB, free: 12.29 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001765/0.3509, allocations: 41.7 kB / 456.5 MB, free: 12.25 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003094/0.3512, allocations: 404.6 kB / 456.9 MB, free: 11.84 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003202/0.3515, allocations: 325.2 kB / 457.3 MB, free: 11.52 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000351/0.3519, allocations: 186.5 kB / 457.4 MB, free: 11.34 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001956/0.3521, allocations: 390.7 kB / 457.8 MB, free: 10.95 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002094/0.3542, allocations: 0.7244 MB / 458.5 MB, free: 10.22 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002215/0.3564, allocations: 0.9551 MB / 459.5 MB, free: 9.176 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004285/0.3607, allocations: 1.693 MB / 461.2 MB, free: 7.391 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.075e-06/0.3607, allocations: 0 / 461.2 MB, free: 7.391 MB / 366.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02414/0.3848, allocations: 5.328 MB / 466.5 MB, free: 2.031 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.333e-05/0.3849, allocations: 67.41 kB / 466.6 MB, free: 1.953 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.598e-05/0.3849, allocations: 4 kB / 466.6 MB, free: 1.949 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03612/0.421, allocations: 6.829 MB / 473.4 MB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007258/0.4218, allocations: 151.7 kB / 473.6 MB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006374/0.4281, allocations: 3.028 MB / 476.6 MB, free: 7.875 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0017/0.4298, allocations: 175.8 kB / 476.8 MB, free: 7.703 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001451/0.43, allocations: 47.92 kB / 476.8 MB, free: 7.656 MB / 382.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.0004247/0.4304, allocations: 225.6 kB / 477 MB, free: 7.426 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001625/0.4306, allocations: 83.48 kB / 477.1 MB, free: 7.344 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02325/0.4538, allocations: 5.052 MB / 482.2 MB, free: 2.266 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.776e-05/0.4538, allocations: 8 kB / 482.2 MB, free: 2.258 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.4538, allocations: 4 kB / 482.2 MB, free: 2.254 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.357e-05/0.4539, allocations: 15.91 kB / 482.2 MB, free: 2.238 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001586/0.4554, allocations: 1.076 MB / 483.3 MB, free: 1.121 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.173e-06/0.4555, allocations: 4 kB / 483.3 MB, free: 1.117 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005453/0.456, allocations: 95.88 kB / 483.4 MB, free: 1.023 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03518/0.4912, allocations: 6.785 MB / 490.1 MB, free: 10.22 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000241/0.4914, allocations: 24.03 kB / 490.2 MB, free: 10.2 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00621/0.4976, allocations: 3.04 MB / 493.2 MB, free: 7.102 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/0.4976, allocations: 3.984 kB / 493.2 MB, free: 7.098 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02561/0.5232, allocations: 5.941 MB / 499.2 MB, free: 1.129 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002081/0.5235, allocations: 71.45 kB / 499.2 MB, free: 1.059 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001877/0.5236, allocations: 16 kB / 499.2 MB, free: 1.043 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001405/0.525, allocations: 171.8 kB / 499.4 MB, free: 0.875 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000262/0.5253, allocations: 100.8 kB / 499.5 MB, free: 0.7773 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.943e-05/0.5254, allocations: 35.97 kB / 499.5 MB, free: 0.7422 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004516/0.5258, allocations: 354.8 kB / 499.9 MB, free: 404 kB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5258, allocations: 0 / 499.9 MB, free: 404 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007359/0.5266, allocations: 259.9 kB / 0.4884 GB, free: 144 kB / 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.02573/0.5523, allocations: 6.536 MB / 0.4948 GB, free: 9.559 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006145/0.5585, allocations: 1.966 MB / 0.4967 GB, free: 7.57 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.5585, allocations: 0 / 0.4967 GB, free: 7.57 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003561/0.562, allocations: 1.011 MB / 0.4977 GB, free: 6.559 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008513/0.5629, allocations: 139.8 kB / 0.4978 GB, free: 6.43 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05732/0.6202, allocations: 15.89 MB / 0.5134 GB, free: 6.207 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006333/0.6208, allocations: 0.9468 MB / 0.5143 GB, free: 5.23 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003608/0.6212, allocations: 62.27 kB / 0.5143 GB, free: 5.168 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000408/0.6216, allocations: 271.3 kB / 0.5146 GB, free: 4.902 MB / 430.1 MB Notification: Performance of SimCode: time 1.703e-06/0.6216, allocations: 0 / 0.5146 GB, free: 4.902 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2675/0.8891, allocations: 31.16 MB / 0.545 GB, free: 115.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.34/15.23, allocations: 10.06 kB / 0.5451 GB, free: 115.3 MB / 446.1 MB " [Timeout remaining time 645] (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.0396747 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.86841883800298]