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.000957/0.000957, allocations: 96.48 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001088/0.001088, allocations: 205.5 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.225/1.225, allocations: 227.7 MB / 246.8 MB, free: 11.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002247/0.0002247, allocations: 11.94 kB / 307.8 MB, free: 0.7305 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09084/0.09108, allocations: 51.52 MB / 359.4 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.004573/0.09569, allocations: 4.541 MB / 363.9 MB, free: 8.641 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002421/0.09814, allocations: 1.287 MB / 365.2 MB, free: 7.348 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005454/0.09871, allocations: 8 kB / 365.2 MB, free: 7.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003103/0.09904, allocations: 91.23 kB / 365.3 MB, free: 7.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007023/0.09975, allocations: 222.1 kB / 365.5 MB, free: 7.031 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007172/0.1005, allocations: 263.7 kB / 365.8 MB, free: 6.773 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001199/0.1017, allocations: 1.036 MB / 366.8 MB, free: 5.73 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003871/0.1021, allocations: 231.4 kB / 367 MB, free: 5.492 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005569/0.1027, allocations: 362.5 kB / 367.4 MB, free: 5.137 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006438/0.1033, allocations: 418 kB / 367.8 MB, free: 4.727 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001473/0.1035, allocations: 44 kB / 367.8 MB, free: 4.684 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002297/0.1037, allocations: 67.98 kB / 367.9 MB, free: 4.617 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001519/0.1039, allocations: 151.3 kB / 368 MB, free: 4.469 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004297/0.1043, allocations: 427.5 kB / 368.5 MB, free: 4.043 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008292/0.1051, allocations: 0.9419 MB / 369.4 MB, free: 3.098 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.1052, allocations: 0 / 369.4 MB, free: 3.098 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.1052, allocations: 0 / 369.4 MB, free: 3.098 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.978e-05/0.1052, allocations: 4 kB / 369.4 MB, free: 3.094 MB / 302.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.002331/0.1075, allocations: 1.153 MB / 370.6 MB, free: 1.875 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.357e-05/0.1076, allocations: 8.031 kB / 370.6 MB, free: 1.867 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001237/0.1077, allocations: 102.7 kB / 370.7 MB, free: 1.758 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001408/0.1079, allocations: 99.81 kB / 370.8 MB, free: 1.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005443/0.1084, allocations: 479.5 kB / 371.2 MB, free: 1.152 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.012e-05/0.1085, allocations: 45.69 kB / 371.3 MB, free: 1.109 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001143/0.1086, allocations: 68.28 kB / 371.3 MB, free: 1.043 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001324/0.1099, allocations: 0.6898 MB / 372 MB, free: 352 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.827e-05/0.11, allocations: 3.984 kB / 372 MB, free: 348 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.183e-05/0.11, allocations: 28 kB / 372.1 MB, free: 320 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.183e-05/0.11, allocations: 16 kB / 372.1 MB, free: 304 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1384/0.2484, allocations: 0.7541 MB / 372.8 MB, free: 19.32 MB / 302.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.003725/0.2522, allocations: 2.423 MB / 375.3 MB, free: 18.48 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001486/0.2537, allocations: 0.6378 MB / 375.9 MB, free: 18.38 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007291/0.2544, allocations: 359.1 kB / 376.2 MB, free: 18.26 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.181e-05/0.2545, allocations: 16.55 kB / 376.3 MB, free: 18.26 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008566/0.2554, allocations: 460 kB / 376.7 MB, free: 18.07 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 2.415e-06/0.2554, allocations: 0 / 376.7 MB, free: 18.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=94): time 0.06593/0.3213, allocations: 16.76 MB / 393.5 MB, free: 11.36 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.001e-05/0.3214, allocations: 149.5 kB / 393.6 MB, free: 11.19 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004754/0.3219, allocations: 0.5186 MB / 394.1 MB, free: 10.66 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001316/0.322, allocations: 41.7 kB / 394.2 MB, free: 10.61 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001614/0.3222, allocations: 386.3 kB / 394.6 MB, free: 10.23 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001754/0.3223, allocations: 310.9 kB / 394.9 MB, free: 9.93 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001137/0.3225, allocations: 81.67 kB / 394.9 MB, free: 9.844 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.441e-05/0.3225, allocations: 390.7 kB / 395.3 MB, free: 9.453 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001807/0.3244, allocations: 0.7986 MB / 396.1 MB, free: 8.652 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00189/0.3263, allocations: 1.033 MB / 397.2 MB, free: 7.531 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003576/0.3298, allocations: 1.845 MB / 399 MB, free: 5.59 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.3299, allocations: 4 kB / 399 MB, free: 5.586 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02161/0.3515, allocations: 5.75 MB / 404.8 MB, free: 15.82 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.807e-05/0.3516, allocations: 67.42 kB / 404.8 MB, free: 15.74 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.773e-05/0.3516, allocations: 11.39 kB / 404.8 MB, free: 15.73 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03367/0.3853, allocations: 7.326 MB / 412.2 MB, free: 8.398 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000722/0.386, allocations: 183.7 kB / 412.3 MB, free: 8.219 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006558/0.3926, allocations: 3.209 MB / 415.5 MB, free: 4.957 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001643/0.3943, allocations: 223.8 kB / 415.8 MB, free: 4.738 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001181/0.3944, allocations: 47.97 kB / 415.8 MB, free: 4.691 MB / 318.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.0004431/0.3948, allocations: 227.8 kB / 416 MB, free: 4.461 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002029/0.3951, allocations: 87.06 kB / 416.1 MB, free: 4.375 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02225/0.4173, allocations: 5.475 MB / 421.6 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.069e-05/0.4173, allocations: 8 kB / 421.6 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.617e-06/0.4174, allocations: 4 kB / 421.6 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.232e-05/0.4174, allocations: 7.922 kB / 421.6 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001368/0.4187, allocations: 1.093 MB / 422.7 MB, free: 13.74 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.971e-06/0.4188, allocations: 0 / 422.7 MB, free: 13.74 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005456/0.4193, allocations: 123.9 kB / 422.8 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03326/0.4526, allocations: 7.292 MB / 430.1 MB, free: 6.32 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001626/0.4528, allocations: 27.97 kB / 430.1 MB, free: 6.293 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00559/0.4584, allocations: 3.078 MB / 433.2 MB, free: 3.16 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.4584, allocations: 4 kB / 433.2 MB, free: 3.156 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02437/0.4828, allocations: 6.438 MB / 439.7 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002204/0.483, allocations: 148.2 kB / 439.8 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002079/0.4832, allocations: 25.81 kB / 439.8 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001441/0.4847, allocations: 215.8 kB / 440 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002657/0.485, allocations: 92.86 kB / 440.1 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.407e-05/0.4851, allocations: 31.97 kB / 440.2 MB, free: 12.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004041/0.4855, allocations: 354.8 kB / 440.5 MB, free: 11.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.4855, allocations: 4 kB / 440.5 MB, free: 11.83 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007799/0.4863, allocations: 256 kB / 440.8 MB, free: 11.58 MB / 350.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.02482/0.5111, allocations: 7.019 MB / 447.8 MB, free: 4.539 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00673/0.5179, allocations: 2.34 MB / 450.1 MB, free: 2.176 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/0.5179, allocations: 0 / 450.1 MB, free: 2.176 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003392/0.5213, allocations: 1.152 MB / 451.3 MB, free: 1.023 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006986/0.522, allocations: 129.5 kB / 451.4 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05448/0.5765, allocations: 17.43 MB / 468.8 MB, free: 15.16 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004716/0.577, allocations: 0.9507 MB / 469.8 MB, free: 14.18 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000312/0.5773, allocations: 58.22 kB / 469.8 MB, free: 14.13 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003226/0.5776, allocations: 267.3 kB / 470.1 MB, free: 13.87 MB / 382.1 MB Notification: Performance of SimCode: time 8.92e-07/0.5777, allocations: 0 / 470.1 MB, free: 13.87 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04252/0.6202, allocations: 26.98 MB / 497.1 MB, free: 3.164 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000172/0.6204, allocations: 238.3 kB / 497.3 MB, free: 2.906 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.421/3.041, allocations: 0 / 497.3 MB, free: 2.906 MB / 398.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 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.mat","/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