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.001483/0.001483, allocations: 123.9 kB / 17.79 MB, free: 5.258 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.002217/0.002217, allocations: 189.2 kB / 20.73 MB, free: 2.324 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.405/1.405, allocations: 225.6 MB / 249.1 MB, free: 3.582 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001427, allocations: 47.92 kB / 365.7 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09925/0.1007, allocations: 52.13 MB / 417.8 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.00594/0.1066, allocations: 4.969 MB / 422.8 MB, free: 7.668 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002283/0.1089, allocations: 1.272 MB / 424 MB, free: 6.387 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000254/0.1092, allocations: 11.94 kB / 424.1 MB, free: 6.375 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002798/0.1094, allocations: 122.7 kB / 424.2 MB, free: 6.254 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004528/0.1099, allocations: 265.6 kB / 424.4 MB, free: 5.992 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006643/0.1105, allocations: 307.5 kB / 424.7 MB, free: 5.691 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001044/0.1116, allocations: 1.099 MB / 425.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003058/0.1119, allocations: 186.6 kB / 426 MB, free: 4.383 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004395/0.1123, allocations: 426.5 kB / 426.4 MB, free: 3.965 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005304/0.1129, allocations: 478 kB / 426.9 MB, free: 3.496 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001261/0.113, allocations: 92 kB / 427 MB, free: 3.406 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001876/0.1132, allocations: 108 kB / 427.1 MB, free: 3.301 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001749/0.1134, allocations: 203.3 kB / 427.3 MB, free: 3.102 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004097/0.1138, allocations: 457.8 kB / 427.7 MB, free: 2.652 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001017/0.1148, allocations: 1.031 MB / 428.8 MB, free: 1.617 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.686e-06/0.1148, allocations: 7.922 kB / 428.8 MB, free: 1.609 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1148, allocations: 0 / 428.8 MB, free: 1.609 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.548e-05/0.1148, allocations: 4 kB / 428.8 MB, free: 1.605 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.002414/0.1172, allocations: 1.277 MB / 430.1 MB, free: 268 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.1173, allocations: 12.03 kB / 430.1 MB, free: 256 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001243/0.1174, allocations: 106.7 kB / 430.2 MB, free: 140 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001486/0.1175, allocations: 96.38 kB / 430.3 MB, free: 44 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007269/0.1183, allocations: 499.9 kB / 430.8 MB, free: 15.51 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.845e-05/0.1183, allocations: 49.67 kB / 430.8 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001112/0.1184, allocations: 64.38 kB / 430.9 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001301/0.1197, allocations: 0.6546 MB / 431.5 MB, free: 14.74 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.992e-05/0.1197, allocations: 0 / 431.5 MB, free: 14.74 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.975e-05/0.1198, allocations: 28 kB / 431.6 MB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.865e-05/0.1198, allocations: 12 kB / 431.6 MB, free: 14.7 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001577/0.1214, allocations: 0.6961 MB / 432.3 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.003744/0.1251, allocations: 2.387 MB / 434.6 MB, free: 11.47 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001368/0.1265, allocations: 0.5677 MB / 435.2 MB, free: 10.89 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006784/0.1272, allocations: 306.6 kB / 435.5 MB, free: 10.59 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.378e-05/0.1272, allocations: 20.41 kB / 435.5 MB, free: 10.57 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008833/0.1281, allocations: 421.4 kB / 435.9 MB, free: 10.14 MB / 366.1 MB Notification: Performance of pre-optimization done (n=54): time 1.994e-06/0.1281, allocations: 0 / 435.9 MB, free: 10.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=94): time 0.2384/0.3666, allocations: 15.39 MB / 451.3 MB, free: 29.84 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.243e-05/0.3666, allocations: 141.2 kB / 451.5 MB, free: 29.68 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007715/0.3674, allocations: 0.5178 MB / 452 MB, free: 29.55 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001611/0.3676, allocations: 50.78 kB / 452 MB, free: 29.52 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002586/0.3678, allocations: 393.4 kB / 452.4 MB, free: 29.34 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002734/0.3681, allocations: 332.7 kB / 452.7 MB, free: 29.17 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003426/0.3684, allocations: 191.4 kB / 452.9 MB, free: 29.15 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.589e-05/0.3685, allocations: 388.9 kB / 453.3 MB, free: 28.84 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002084/0.3706, allocations: 0.7204 MB / 454 MB, free: 28.83 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001937/0.3726, allocations: 0.9497 MB / 455 MB, free: 28.57 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003661/0.3762, allocations: 1.695 MB / 456.7 MB, free: 27.78 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.903e-06/0.3762, allocations: 7.25 kB / 456.7 MB, free: 27.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02125/0.3975, allocations: 5.331 MB / 462 MB, free: 26.79 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.571e-05/0.3975, allocations: 68.14 kB / 462.1 MB, free: 26.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.969e-05/0.3976, allocations: 5.969 kB / 462.1 MB, free: 26.72 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0317/0.4293, allocations: 6.844 MB / 468.9 MB, free: 24.1 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006916/0.43, allocations: 150 kB / 469.1 MB, free: 24.05 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005734/0.4357, allocations: 3.166 MB / 472.2 MB, free: 21.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001548/0.4372, allocations: 179.5 kB / 472.4 MB, free: 21.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001103/0.4374, allocations: 45.23 kB / 472.5 MB, free: 21.86 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.0003854/0.4377, allocations: 230.3 kB / 472.7 MB, free: 21.67 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001314/0.4379, allocations: 88.86 kB / 472.8 MB, free: 21.62 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01882/0.4567, allocations: 5.054 MB / 477.8 MB, free: 18.16 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.514e-05/0.4567, allocations: 8 kB / 477.8 MB, free: 18.15 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.4567, allocations: 0 / 477.8 MB, free: 18.15 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.661e-05/0.4567, allocations: 15.95 kB / 477.9 MB, free: 18.14 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001064/0.4578, allocations: 1.101 MB / 479 MB, free: 17.03 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.469e-06/0.4578, allocations: 3.938 kB / 479 MB, free: 17.03 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004402/0.4582, allocations: 99.81 kB / 479.1 MB, free: 16.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02935/0.4876, allocations: 6.793 MB / 485.9 MB, free: 10.13 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001787/0.4878, allocations: 27.97 kB / 485.9 MB, free: 10.1 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004453/0.4922, allocations: 3.049 MB / 488.9 MB, free: 7 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.4922, allocations: 0 / 488.9 MB, free: 7 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02097/0.5132, allocations: 5.939 MB / 494.9 MB, free: 1.039 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001835/0.5134, allocations: 152.5 kB / 495 MB, free: 0.8711 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001397/0.5135, allocations: 16 kB / 495 MB, free: 0.8555 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001201/0.5147, allocations: 168.9 kB / 495.2 MB, free: 0.6914 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002171/0.5149, allocations: 102.9 kB / 495.3 MB, free: 0.5898 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.987e-05/0.515, allocations: 31.97 kB / 495.3 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000288/0.5153, allocations: 364.2 kB / 495.7 MB, free: 212 kB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5153, allocations: 0 / 495.7 MB, free: 212 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006807/0.516, allocations: 256 kB / 495.9 MB, free: 15.95 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.025/0.541, allocations: 6.54 MB / 0.4907 GB, free: 9.395 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006764/0.5477, allocations: 2.107 MB / 0.4928 GB, free: 7.266 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/0.5477, allocations: 4.062 kB / 0.4928 GB, free: 7.262 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003297/0.551, allocations: 1.017 MB / 0.4938 GB, free: 6.254 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007138/0.5518, allocations: 133.5 kB / 0.4939 GB, free: 6.133 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05374/0.6055, allocations: 15.89 MB / 0.5094 GB, free: 5.941 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006015/0.6061, allocations: 0.9507 MB / 0.5103 GB, free: 4.965 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003143/0.6064, allocations: 57.52 kB / 0.5104 GB, free: 4.91 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003497/0.6068, allocations: 271.3 kB / 0.5106 GB, free: 4.648 MB / 398.1 MB Notification: Performance of SimCode: time 9.52e-07/0.6068, allocations: 4 kB / 0.5106 GB, free: 4.645 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0672/0.674, allocations: 29.68 MB / 0.5396 GB, free: 7.262 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.66/14.33, allocations: 7.75 kB / 0.5396 GB, free: 7.258 MB / 430.1 MB " [Timeout remaining time 645] (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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingNPN_NORGate/HeatingNPN_NORGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 18.30143129872158]