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.001342/0.001342, allocations: 108.6 kB / 21.22 MB, free: 0.75 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.00141/0.00141, allocations: 187.8 kB / 24.5 MB, free: 4.02 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.35/1.35, allocations: 225.7 MB / 253.3 MB, free: 13.03 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001438/0.001438, allocations: 43.92 kB / 371.2 MB, free: 9.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2524/0.2539, allocations: 52.19 MB / 423.4 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.006194/0.2601, allocations: 4.984 MB / 428.4 MB, free: 9.594 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002558/0.2626, allocations: 1.268 MB / 429.7 MB, free: 8.316 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003173/0.2629, allocations: 11.94 kB / 429.7 MB, free: 8.305 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003324/0.2633, allocations: 130.7 kB / 429.8 MB, free: 8.176 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004902/0.2638, allocations: 261.6 kB / 430.1 MB, free: 7.918 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00071/0.2645, allocations: 311.5 kB / 430.4 MB, free: 7.613 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001145/0.2656, allocations: 1.099 MB / 431.5 MB, free: 6.512 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003439/0.266, allocations: 187 kB / 431.7 MB, free: 6.312 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005305/0.2665, allocations: 430.6 kB / 432.1 MB, free: 5.891 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005939/0.2671, allocations: 478 kB / 432.5 MB, free: 5.422 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001222/0.2672, allocations: 96 kB / 432.6 MB, free: 5.328 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002227/0.2674, allocations: 116 kB / 432.8 MB, free: 5.215 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001777/0.2676, allocations: 203.3 kB / 433 MB, free: 5.016 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004162/0.268, allocations: 453.8 kB / 433.4 MB, free: 4.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001076/0.2691, allocations: 1.036 MB / 434.4 MB, free: 3.535 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.399e-06/0.2691, allocations: 0 / 434.4 MB, free: 3.535 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2691, allocations: 0 / 434.4 MB, free: 3.535 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.019e-05/0.2691, allocations: 0 / 434.4 MB, free: 3.535 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.002593/0.2717, allocations: 1.217 MB / 435.6 MB, free: 2.27 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.891e-05/0.2717, allocations: 12.03 kB / 435.7 MB, free: 2.258 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.984e-05/0.2718, allocations: 21.5 kB / 435.7 MB, free: 2.234 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001241/0.2719, allocations: 106.7 kB / 435.8 MB, free: 2.121 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001612/0.2721, allocations: 92.38 kB / 435.9 MB, free: 2.031 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006947/0.2728, allocations: 426.1 kB / 436.3 MB, free: 1.586 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.272e-05/0.2728, allocations: 49.67 kB / 436.3 MB, free: 1.539 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001102/0.2729, allocations: 64.38 kB / 436.4 MB, free: 1.477 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001368/0.2743, allocations: 0.6506 MB / 437.1 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.109e-05/0.2743, allocations: 3.938 kB / 437.1 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.881e-05/0.2744, allocations: 28 kB / 437.1 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.495e-05/0.2744, allocations: 16 kB / 437.1 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001696/0.2761, allocations: 0.7 MB / 437.8 MB, free: 72 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.003941/0.28, allocations: 2.319 MB / 440.1 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001465/0.2815, allocations: 0.5587 MB / 440.7 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007543/0.2822, allocations: 310 kB / 441 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.852e-05/0.2823, allocations: 8.422 kB / 441 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009591/0.2832, allocations: 425.4 kB / 441.4 MB, free: 12.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 1.824e-06/0.2833, allocations: 0 / 441.4 MB, free: 12.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=94): time 0.06786/0.3511, allocations: 15.23 MB / 456.6 MB, free: 13 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001269/0.3512, allocations: 145.5 kB / 456.8 MB, free: 12.82 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007342/0.352, allocations: 0.5147 MB / 457.3 MB, free: 12.29 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001628/0.3521, allocations: 41.7 kB / 457.3 MB, free: 12.25 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003258/0.3525, allocations: 408.5 kB / 457.7 MB, free: 11.84 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000331/0.3528, allocations: 333.2 kB / 458.1 MB, free: 11.51 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003836/0.3532, allocations: 186.6 kB / 458.2 MB, free: 11.32 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002087/0.3534, allocations: 386.7 kB / 458.6 MB, free: 10.94 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002083/0.3555, allocations: 0.7283 MB / 459.3 MB, free: 10.21 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002245/0.3577, allocations: 0.9551 MB / 460.3 MB, free: 9.164 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004215/0.3619, allocations: 1.685 MB / 462 MB, free: 7.387 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.574e-06/0.3619, allocations: 4 kB / 462 MB, free: 7.383 MB / 366.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.0227/0.3846, allocations: 5.324 MB / 467.3 MB, free: 2.027 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.429e-05/0.3847, allocations: 71.39 kB / 467.4 MB, free: 1.945 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.529e-05/0.3847, allocations: 4 kB / 467.4 MB, free: 1.941 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03414/0.4189, allocations: 6.833 MB / 474.2 MB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007136/0.4196, allocations: 143.7 kB / 474.4 MB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006218/0.4258, allocations: 3.032 MB / 477.4 MB, free: 7.867 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001621/0.4274, allocations: 179.8 kB / 477.6 MB, free: 7.691 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001237/0.4276, allocations: 51.91 kB / 477.6 MB, free: 7.641 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.0004447/0.428, allocations: 225.7 kB / 477.8 MB, free: 7.41 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001637/0.4282, allocations: 87.52 kB / 477.9 MB, free: 7.324 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02211/0.4503, allocations: 5.056 MB / 483 MB, free: 2.246 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-05/0.4503, allocations: 8 kB / 483 MB, free: 2.238 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.121e-05/0.4503, allocations: 0 / 483 MB, free: 2.238 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.208e-05/0.4503, allocations: 7.984 kB / 483 MB, free: 2.23 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001668/0.452, allocations: 1.08 MB / 484.1 MB, free: 1.109 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.452, allocations: 256 / 484.1 MB, free: 1.109 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005429/0.4525, allocations: 107.8 kB / 484.2 MB, free: 1.004 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03336/0.4859, allocations: 6.778 MB / 491 MB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002011/0.4861, allocations: 27.97 kB / 491 MB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006076/0.4922, allocations: 3.036 MB / 494 MB, free: 7.09 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/0.4922, allocations: 0 / 494 MB, free: 7.09 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02408/0.5163, allocations: 5.944 MB / 500 MB, free: 1.117 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002041/0.5165, allocations: 71.5 kB / 0.4883 GB, free: 1.047 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001573/0.5166, allocations: 16 kB / 0.4883 GB, free: 1.031 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001338/0.518, allocations: 171.8 kB / 0.4885 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002587/0.5182, allocations: 96.83 kB / 0.4886 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.478e-05/0.5183, allocations: 31.98 kB / 0.4886 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004344/0.5188, allocations: 354.8 kB / 0.489 GB, free: 400 kB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5188, allocations: 0 / 0.489 GB, free: 400 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007402/0.5195, allocations: 263.9 kB / 0.4892 GB, free: 136 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.0249/0.5444, allocations: 6.532 MB / 0.4956 GB, free: 9.559 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006159/0.5506, allocations: 1.973 MB / 0.4975 GB, free: 7.562 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.5506, allocations: 0 / 0.4975 GB, free: 7.562 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00348/0.554, allocations: 1.02 MB / 0.4985 GB, free: 6.543 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000775/0.5548, allocations: 130.4 kB / 0.4986 GB, free: 6.414 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.055/0.6098, allocations: 15.89 MB / 0.5142 GB, free: 6.195 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005685/0.6104, allocations: 0.9506 MB / 0.5151 GB, free: 5.219 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003166/0.6107, allocations: 62.25 kB / 0.5151 GB, free: 5.156 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00036/0.6111, allocations: 279.3 kB / 0.5154 GB, free: 4.883 MB / 430.1 MB Notification: Performance of SimCode: time 1.001e-06/0.6111, allocations: 0 / 0.5154 GB, free: 4.883 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2696/0.8807, allocations: 31.19 MB / 0.5459 GB, free: 114.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.84/14.72, allocations: 5.375 kB / 0.5459 GB, free: 114.9 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate_fmu --startTime=0 --stopTime=200 --stepSize=0.0396747 --timeout=50 --tolerance=1e-06 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.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_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.6507244160166]