Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_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.001437/0.001437, allocations: 115.7 kB / 18.49 MB, free: 4.566 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.001346/0.001346, allocations: 190.6 kB / 21.43 MB, free: 1.641 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.376/1.376, allocations: 225.6 MB / 249.8 MB, free: 3.621 MB / 190.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.HeatingNPN_NORGate,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00149/0.00149, allocations: 47.94 kB / 366.4 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09687/0.09836, allocations: 52.13 MB / 418.5 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.005984/0.1043, allocations: 4.975 MB / 423.5 MB, free: 7.688 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002268/0.1066, allocations: 1.272 MB / 424.7 MB, free: 6.406 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002606/0.1069, allocations: 15.94 kB / 424.8 MB, free: 6.391 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002856/0.1072, allocations: 126.7 kB / 424.9 MB, free: 6.266 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004471/0.1076, allocations: 261.7 kB / 425.1 MB, free: 6.008 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006583/0.1083, allocations: 307.5 kB / 425.4 MB, free: 5.707 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001088/0.1094, allocations: 1.099 MB / 426.5 MB, free: 4.605 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003092/0.1097, allocations: 182.5 kB / 426.7 MB, free: 4.402 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004488/0.1101, allocations: 442.5 kB / 427.1 MB, free: 3.969 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005314/0.1106, allocations: 466.1 kB / 427.6 MB, free: 3.512 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000117/0.1108, allocations: 92 kB / 427.7 MB, free: 3.422 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001902/0.111, allocations: 123.9 kB / 427.8 MB, free: 3.301 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001701/0.1111, allocations: 203.3 kB / 428 MB, free: 3.102 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004021/0.1115, allocations: 441.9 kB / 428.4 MB, free: 2.668 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001055/0.1126, allocations: 1.043 MB / 429.5 MB, free: 1.621 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.1126, allocations: 0 / 429.5 MB, free: 1.621 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1126, allocations: 0 / 429.5 MB, free: 1.621 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.016e-05/0.1126, allocations: 0 / 429.5 MB, free: 1.621 MB / 350.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.002493/0.1151, allocations: 1.285 MB / 430.8 MB, free: 276 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/0.1151, allocations: 8.031 kB / 430.8 MB, free: 268 kB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.146e-05/0.1152, allocations: 17.5 kB / 430.8 MB, free: 248 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000126/0.1153, allocations: 106.7 kB / 430.9 MB, free: 132 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001547/0.1154, allocations: 96.38 kB / 431 MB, free: 36 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007219/0.1162, allocations: 499.8 kB / 431.5 MB, free: 15.51 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.138e-05/0.1162, allocations: 49.67 kB / 431.5 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001146/0.1163, allocations: 68.38 kB / 431.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001385/0.1177, allocations: 0.6506 MB / 432.2 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.766e-05/0.1177, allocations: 0 / 432.2 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.252e-05/0.1178, allocations: 28 kB / 432.3 MB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.667e-05/0.1178, allocations: 16 kB / 432.3 MB, free: 14.69 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001688/0.1195, allocations: 0.6961 MB / 433 MB, free: 14 MB / 366.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.003844/0.1233, allocations: 2.383 MB / 435.4 MB, free: 11.46 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001485/0.1248, allocations: 0.5614 MB / 435.9 MB, free: 10.89 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007574/0.1256, allocations: 310.6 kB / 436.2 MB, free: 10.59 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.898e-05/0.1256, allocations: 12.42 kB / 436.2 MB, free: 10.58 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009441/0.1266, allocations: 428.8 kB / 436.7 MB, free: 10.14 MB / 366.1 MB Notification: Performance of pre-optimization done (n=54): time 1.853e-06/0.1266, allocations: 7.938 kB / 436.7 MB, free: 10.13 MB / 366.1 MB Notification: Performance of matching and sorting (n=94): time 0.2444/0.371, allocations: 15.39 MB / 452.1 MB, free: 29.94 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.308e-05/0.371, allocations: 141.5 kB / 452.2 MB, free: 29.79 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007408/0.3718, allocations: 0.5209 MB / 452.7 MB, free: 29.66 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001581/0.3719, allocations: 47.58 kB / 452.8 MB, free: 29.63 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000229/0.3722, allocations: 389.6 kB / 453.2 MB, free: 29.45 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002646/0.3724, allocations: 328.9 kB / 453.5 MB, free: 29.28 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003649/0.3728, allocations: 189.8 kB / 453.7 MB, free: 29.25 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001117/0.3729, allocations: 387.4 kB / 454 MB, free: 28.94 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001952/0.3749, allocations: 0.7202 MB / 454.8 MB, free: 28.93 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002083/0.3769, allocations: 0.9543 MB / 455.7 MB, free: 28.66 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003845/0.3808, allocations: 1.693 MB / 457.4 MB, free: 27.86 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.081e-06/0.3808, allocations: 1.438 kB / 457.4 MB, free: 27.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02198/0.4028, allocations: 5.339 MB / 462.7 MB, free: 26.88 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.229e-05/0.4029, allocations: 61.5 kB / 462.8 MB, free: 26.81 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.211e-05/0.4029, allocations: 6.219 kB / 462.8 MB, free: 26.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03165/0.4345, allocations: 6.852 MB / 469.7 MB, free: 24.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006693/0.4352, allocations: 151.1 kB / 469.8 MB, free: 24.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005754/0.441, allocations: 3.159 MB / 473 MB, free: 22.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001565/0.4425, allocations: 187.1 kB / 473.2 MB, free: 21.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.685e-05/0.4426, allocations: 47.59 kB / 473.2 MB, free: 21.94 MB / 366.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.0003711/0.443, allocations: 228.1 kB / 473.4 MB, free: 21.75 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001347/0.4431, allocations: 83.83 kB / 473.5 MB, free: 21.71 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01927/0.4624, allocations: 5.062 MB / 478.6 MB, free: 18.17 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.825e-05/0.4624, allocations: 8 kB / 478.6 MB, free: 18.16 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.037e-06/0.4624, allocations: 4.812 kB / 478.6 MB, free: 18.16 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.98e-05/0.4624, allocations: 3.984 kB / 478.6 MB, free: 18.16 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001183/0.4636, allocations: 1.108 MB / 479.7 MB, free: 17.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.76e-06/0.4636, allocations: 3.938 kB / 479.7 MB, free: 17.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004961/0.4641, allocations: 87.83 kB / 479.8 MB, free: 16.95 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02839/0.4925, allocations: 6.803 MB / 486.6 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001852/0.4927, allocations: 19.98 kB / 486.6 MB, free: 10.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004611/0.4973, allocations: 3.046 MB / 489.6 MB, free: 7.02 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.4973, allocations: 0 / 489.6 MB, free: 7.02 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02043/0.5177, allocations: 5.944 MB / 495.6 MB, free: 1.055 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000177/0.5179, allocations: 149.5 kB / 495.7 MB, free: 0.8906 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001359/0.518, allocations: 21.42 kB / 495.8 MB, free: 0.8711 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00121/0.5193, allocations: 171.8 kB / 495.9 MB, free: 0.7031 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000215/0.5195, allocations: 96.88 kB / 496 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.576e-05/0.5196, allocations: 35.97 kB / 496.1 MB, free: 0.5703 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002865/0.5198, allocations: 354.7 kB / 496.4 MB, free: 236 kB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5198, allocations: 0 / 496.4 MB, free: 236 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.00069/0.5205, allocations: 261.8 kB / 496.7 MB, free: 15.97 MB / 382.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.0242/0.5447, allocations: 6.547 MB / 0.4914 GB, free: 9.406 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006825/0.5516, allocations: 2.096 MB / 0.4935 GB, free: 7.285 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.494e-06/0.5516, allocations: 4 kB / 0.4935 GB, free: 7.281 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00346/0.555, allocations: 1.025 MB / 0.4945 GB, free: 6.266 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007879/0.5558, allocations: 133.4 kB / 0.4946 GB, free: 6.137 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05328/0.6091, allocations: 15.89 MB / 0.5101 GB, free: 5.953 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005572/0.6096, allocations: 0.9507 MB / 0.511 GB, free: 4.977 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003006/0.6099, allocations: 56.81 kB / 0.5111 GB, free: 4.922 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003589/0.6103, allocations: 275.3 kB / 0.5114 GB, free: 4.656 MB / 398.1 MB Notification: Performance of SimCode: time 7.31e-07/0.6103, allocations: 0 / 0.5114 GB, free: 4.656 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06205/0.6724, allocations: 29.71 MB / 0.5404 GB, free: 7.254 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.12/13.8, allocations: 8.938 kB / 0.5404 GB, free: 7.246 MB / 430.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate_fmu --startTime=0 --stopTime=200 --stepSize=0.0396747 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingNPN_NORGate/HeatingNPN_NORGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_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: 16.71795685798861]