Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001728/0.001728, allocations: 121.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002018/0.002019, allocations: 204.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.426/1.426, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002621/0.002621, allocations: 63.89 kB / 358.2 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2581/0.2608, allocations: 50.54 MB / 408.8 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.006289/0.2671, allocations: 4.957 MB / 413.7 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002647/0.2698, allocations: 1.283 MB / 415 MB, free: 11.24 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003915/0.2702, allocations: 15.94 kB / 415 MB, free: 11.22 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003188/0.2706, allocations: 118.7 kB / 415.2 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004879/0.2711, allocations: 257.6 kB / 415.4 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000784/0.2718, allocations: 311.5 kB / 415.7 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001146/0.273, allocations: 1.099 MB / 416.8 MB, free: 9.441 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004262/0.2734, allocations: 262.5 kB / 417.1 MB, free: 9.168 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005746/0.274, allocations: 418.5 kB / 417.5 MB, free: 8.758 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005727/0.2746, allocations: 466 kB / 417.9 MB, free: 8.301 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001301/0.2747, allocations: 88 kB / 418 MB, free: 8.215 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002109/0.275, allocations: 120 kB / 418.1 MB, free: 8.098 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001751/0.2751, allocations: 191.3 kB / 418.3 MB, free: 7.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000437/0.2756, allocations: 445.8 kB / 418.8 MB, free: 7.473 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001148/0.2767, allocations: 1.011 MB / 419.8 MB, free: 6.461 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.396e-06/0.2768, allocations: 3.938 kB / 419.8 MB, free: 6.457 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2768, allocations: 3.938 kB / 419.8 MB, free: 6.453 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.643e-05/0.2768, allocations: 0 / 419.8 MB, free: 6.453 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.002675/0.2795, allocations: 1.281 MB / 421.1 MB, free: 5.105 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/0.2795, allocations: 8.031 kB / 421.1 MB, free: 5.098 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001414/0.2797, allocations: 114.7 kB / 421.2 MB, free: 4.977 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001691/0.2799, allocations: 96.33 kB / 421.3 MB, free: 4.883 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000742/0.2806, allocations: 495.9 kB / 421.8 MB, free: 4.355 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.099e-05/0.2807, allocations: 49.69 kB / 421.8 MB, free: 4.305 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001225/0.2808, allocations: 64.33 kB / 421.9 MB, free: 4.242 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001393/0.2822, allocations: 0.6546 MB / 422.5 MB, free: 3.586 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.828e-05/0.2822, allocations: 4 kB / 422.5 MB, free: 3.582 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.806e-05/0.2823, allocations: 27.98 kB / 422.6 MB, free: 3.555 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.738e-05/0.2823, allocations: 16 kB / 422.6 MB, free: 3.539 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001664/0.284, allocations: 0.6922 MB / 423.3 MB, free: 2.844 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.004117/0.2881, allocations: 2.367 MB / 425.6 MB, free: 332 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0015/0.2896, allocations: 0.5826 MB / 426.2 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007889/0.2904, allocations: 337.9 kB / 426.5 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.542e-05/0.2905, allocations: 16.41 kB / 426.6 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009511/0.2915, allocations: 429.4 kB / 427 MB, free: 14.94 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 4.759e-06/0.2915, allocations: 0 / 427 MB, free: 14.94 MB / 350.1 MB Notification: Performance of matching and sorting (n=94): time 0.07013/0.3616, allocations: 15.43 MB / 442.4 MB, free: 15.41 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001253/0.3618, allocations: 137.5 kB / 442.5 MB, free: 15.25 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007843/0.3626, allocations: 0.5225 MB / 443.1 MB, free: 14.71 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002212/0.3628, allocations: 45.7 kB / 443.1 MB, free: 14.66 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003401/0.3632, allocations: 388.7 kB / 443.5 MB, free: 14.27 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003518/0.3635, allocations: 329.2 kB / 443.8 MB, free: 13.95 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003822/0.3639, allocations: 190.6 kB / 444 MB, free: 13.76 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000215/0.3641, allocations: 386.7 kB / 444.4 MB, free: 13.37 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002057/0.3662, allocations: 0.7283 MB / 445.1 MB, free: 12.64 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002217/0.3684, allocations: 0.9551 MB / 446.1 MB, free: 11.6 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004132/0.3726, allocations: 1.697 MB / 447.8 MB, free: 9.809 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.3726, allocations: 4 kB / 447.8 MB, free: 9.805 MB / 366.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02418/0.3968, allocations: 5.374 MB / 453.1 MB, free: 4.398 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.955e-05/0.3969, allocations: 63.41 kB / 453.2 MB, free: 4.324 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.871e-05/0.3969, allocations: 4 kB / 453.2 MB, free: 4.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03462/0.4316, allocations: 6.836 MB / 460 MB, free: 13.47 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006963/0.4323, allocations: 151.7 kB / 460.2 MB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006105/0.4384, allocations: 3.013 MB / 463.2 MB, free: 10.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001568/0.44, allocations: 179.8 kB / 463.4 MB, free: 10.08 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001153/0.4401, allocations: 51.91 kB / 463.4 MB, free: 10.03 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.0004461/0.4406, allocations: 229.6 kB / 463.6 MB, free: 9.793 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001653/0.4408, allocations: 83.48 kB / 463.7 MB, free: 9.711 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02238/0.4632, allocations: 5.111 MB / 468.8 MB, free: 4.582 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.109e-05/0.4632, allocations: 11.94 kB / 468.8 MB, free: 4.57 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.188e-06/0.4632, allocations: 0 / 468.8 MB, free: 4.57 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.53e-05/0.4633, allocations: 3.984 kB / 468.9 MB, free: 4.566 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001721/0.465, allocations: 1.112 MB / 470 MB, free: 3.406 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.465, allocations: 0 / 470 MB, free: 3.406 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005407/0.4656, allocations: 95.88 kB / 470.1 MB, free: 3.312 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03312/0.4987, allocations: 6.781 MB / 476.8 MB, free: 12.52 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002068/0.4989, allocations: 23.97 kB / 476.9 MB, free: 12.49 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006082/0.505, allocations: 3.029 MB / 479.9 MB, free: 9.406 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.5051, allocations: 0 / 479.9 MB, free: 9.406 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02456/0.5296, allocations: 5.995 MB / 485.9 MB, free: 3.379 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002551/0.5299, allocations: 152.6 kB / 486 MB, free: 3.211 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001574/0.5301, allocations: 16.12 kB / 486 MB, free: 3.195 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001337/0.5314, allocations: 175.8 kB / 486.2 MB, free: 3.023 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00026/0.5317, allocations: 96.86 kB / 486.3 MB, free: 2.93 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.556e-05/0.5318, allocations: 27.98 kB / 486.3 MB, free: 2.902 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004728/0.5323, allocations: 358.8 kB / 486.7 MB, free: 2.551 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5323, allocations: 0 / 486.7 MB, free: 2.551 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008133/0.5331, allocations: 256 kB / 486.9 MB, free: 2.301 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.02519/0.5583, allocations: 6.575 MB / 493.5 MB, free: 11.69 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00595/0.5643, allocations: 2.055 MB / 495.6 MB, free: 9.605 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.273e-06/0.5643, allocations: 4 kB / 495.6 MB, free: 9.602 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003378/0.5677, allocations: 1.079 MB / 496.7 MB, free: 8.523 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008022/0.5685, allocations: 126.2 kB / 496.8 MB, free: 8.398 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05516/0.6237, allocations: 16 MB / 0.5008 GB, free: 8.074 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000628/0.6244, allocations: 0.9468 MB / 0.5017 GB, free: 7.102 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000342/0.6247, allocations: 62.27 kB / 0.5017 GB, free: 7.039 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003743/0.6251, allocations: 275.3 kB / 0.502 GB, free: 6.77 MB / 430.1 MB Notification: Performance of SimCode: time 2.825e-06/0.6251, allocations: 0 / 0.502 GB, free: 6.77 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06947/0.6946, allocations: 29.82 MB / 0.5311 GB, free: 9.168 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.33/14.03, allocations: 8.234 kB / 0.5311 GB, free: 9.16 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/HeatingPNP_NORGate/HeatingPNP_NORGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches