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.001582/0.001583, allocations: 115.5 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001988/0.001988, 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.382/1.382, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001318, allocations: 59.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2514/0.2527, allocations: 50.55 MB / 408.8 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.005799/0.2585, allocations: 4.952 MB / 413.7 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002627/0.2612, allocations: 1.299 MB / 415 MB, free: 11.25 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006446/0.2619, allocations: 11.94 kB / 415 MB, free: 11.24 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004885/0.2624, allocations: 122.7 kB / 415.2 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008093/0.2632, allocations: 261.6 kB / 415.4 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008785/0.2641, allocations: 315.5 kB / 415.7 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001363/0.2655, allocations: 1.095 MB / 416.8 MB, free: 9.453 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004679/0.266, allocations: 258.5 kB / 417.1 MB, free: 9.184 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006961/0.2667, allocations: 430.5 kB / 417.5 MB, free: 8.762 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000543/0.2673, allocations: 462 kB / 417.9 MB, free: 8.309 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001259/0.2674, allocations: 87.98 kB / 418 MB, free: 8.223 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002179/0.2676, allocations: 112 kB / 418.1 MB, free: 8.113 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001603/0.2678, allocations: 199.3 kB / 418.3 MB, free: 7.918 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004123/0.2682, allocations: 441.8 kB / 418.8 MB, free: 7.484 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001148/0.2694, allocations: 1.014 MB / 419.8 MB, free: 6.469 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.743e-06/0.2694, allocations: 0 / 419.8 MB, free: 6.469 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.2694, allocations: 3.938 kB / 419.8 MB, free: 6.465 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.692e-05/0.2694, allocations: 0 / 419.8 MB, free: 6.465 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.00255/0.272, allocations: 1.285 MB / 421.1 MB, free: 5.113 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.272, allocations: 12.03 kB / 421.1 MB, free: 5.102 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001144/0.2721, allocations: 106.7 kB / 421.2 MB, free: 4.988 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001658/0.2723, allocations: 96.33 kB / 421.3 MB, free: 4.895 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007108/0.273, allocations: 491.9 kB / 421.8 MB, free: 4.371 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.352e-05/0.2731, allocations: 49.69 kB / 421.8 MB, free: 4.32 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001116/0.2732, allocations: 64.33 kB / 421.9 MB, free: 4.258 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001383/0.2746, allocations: 0.6624 MB / 422.5 MB, free: 3.594 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.86e-05/0.2746, allocations: 0 / 422.5 MB, free: 3.594 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.266e-05/0.2747, allocations: 24 kB / 422.6 MB, free: 3.57 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.593e-05/0.2747, allocations: 16 kB / 422.6 MB, free: 3.555 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00166/0.2764, allocations: 0.6999 MB / 423.3 MB, free: 2.852 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.00393/0.2803, allocations: 2.367 MB / 425.6 MB, free: 340 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001513/0.2819, allocations: 0.5826 MB / 426.2 MB, free: 15.74 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007464/0.2826, allocations: 341.9 kB / 426.6 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.441e-05/0.2827, allocations: 8.422 kB / 426.6 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001017/0.2837, allocations: 425.4 kB / 427 MB, free: 14.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 4.047e-06/0.2837, allocations: 0 / 427 MB, free: 14.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=94): time 0.06719/0.3509, allocations: 15.43 MB / 442.4 MB, free: 15.42 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.65e-05/0.351, allocations: 145.5 kB / 442.6 MB, free: 15.25 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006685/0.3517, allocations: 0.5186 MB / 443.1 MB, free: 14.72 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001808/0.3519, allocations: 45.7 kB / 443.1 MB, free: 14.67 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003/0.3522, allocations: 396.7 kB / 443.5 MB, free: 14.27 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003767/0.3526, allocations: 333.2 kB / 443.8 MB, free: 13.95 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003957/0.353, allocations: 178.6 kB / 444 MB, free: 13.77 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000172/0.3532, allocations: 398.7 kB / 444.4 MB, free: 13.37 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002072/0.3553, allocations: 0.7165 MB / 445.1 MB, free: 12.65 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002251/0.3575, allocations: 0.9629 MB / 446.1 MB, free: 11.6 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004328/0.3619, allocations: 1.697 MB / 447.8 MB, free: 9.809 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.326e-06/0.3619, allocations: 0 / 447.8 MB, free: 9.809 MB / 366.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02264/0.3846, allocations: 5.378 MB / 453.1 MB, free: 4.398 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.361e-05/0.3847, allocations: 63.39 kB / 453.2 MB, free: 4.324 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.608e-05/0.3847, allocations: 8 kB / 453.2 MB, free: 4.316 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03284/0.4176, allocations: 6.825 MB / 460 MB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007051/0.4183, allocations: 159.7 kB / 460.2 MB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00601/0.4243, allocations: 3.005 MB / 463.2 MB, free: 10.26 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001647/0.426, allocations: 175.9 kB / 463.4 MB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000155/0.4262, allocations: 55.91 kB / 463.4 MB, free: 10.04 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.0004552/0.4266, allocations: 229.7 kB / 463.7 MB, free: 9.801 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000191/0.4268, allocations: 87.47 kB / 463.7 MB, free: 9.715 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02199/0.4488, allocations: 5.115 MB / 468.9 MB, free: 4.582 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.829e-05/0.4489, allocations: 11.98 kB / 468.9 MB, free: 4.57 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.069e-05/0.4489, allocations: 4 kB / 468.9 MB, free: 4.566 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.532e-05/0.449, allocations: 3.984 kB / 468.9 MB, free: 4.562 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00157/0.4505, allocations: 1.104 MB / 470 MB, free: 3.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.786e-06/0.4506, allocations: 0 / 470 MB, free: 3.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005476/0.4511, allocations: 91.88 kB / 470.1 MB, free: 3.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03313/0.4843, allocations: 6.793 MB / 476.9 MB, free: 12.51 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002302/0.4846, allocations: 27.97 kB / 476.9 MB, free: 12.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005996/0.4906, allocations: 3.017 MB / 479.9 MB, free: 9.406 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.4906, allocations: 4 kB / 479.9 MB, free: 9.402 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02419/0.5148, allocations: 5.987 MB / 485.9 MB, free: 3.383 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002345/0.5151, allocations: 152.5 kB / 486 MB, free: 3.215 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002931/0.5154, allocations: 16 kB / 486.1 MB, free: 3.199 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001486/0.5169, allocations: 175.8 kB / 486.2 MB, free: 3.027 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002626/0.5171, allocations: 92.88 kB / 486.3 MB, free: 2.938 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001039/0.5173, allocations: 35.97 kB / 486.4 MB, free: 2.902 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004345/0.5177, allocations: 358.8 kB / 486.7 MB, free: 2.551 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5177, allocations: 0 / 486.7 MB, free: 2.551 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008306/0.5185, allocations: 256 kB / 487 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.02483/0.5434, allocations: 6.571 MB / 493.5 MB, free: 11.69 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006234/0.5497, allocations: 2.06 MB / 495.6 MB, free: 9.605 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/0.5497, allocations: 3.938 kB / 495.6 MB, free: 9.602 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003688/0.5534, allocations: 1.078 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.0008885/0.5543, allocations: 130.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.05446/0.6088, 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.0005157/0.6093, allocations: 0.9468 MB / 0.5017 GB, free: 7.102 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003274/0.6097, allocations: 58.27 kB / 0.5018 GB, free: 7.043 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003721/0.6101, allocations: 271.3 kB / 0.502 GB, free: 6.777 MB / 430.1 MB Notification: Performance of SimCode: time 8.42e-07/0.6101, allocations: 4 kB / 0.502 GB, free: 6.773 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05609/0.6662, allocations: 29.82 MB / 0.5311 GB, free: 9.172 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.82/13.49, allocations: 7.172 kB / 0.5312 GB, free: 9.168 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.0.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