Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001757/0.001757, allocations: 123.4 kB / 17.79 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002126/0.002126, allocations: 208.3 kB / 20.75 MB, free: 2.273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.419/1.419, allocations: 230.6 MB / 254.1 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001526/0.001526, allocations: 51.92 kB / 373 MB, free: 10.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09739/0.09891, allocations: 53.32 MB / 426.3 MB, free: 4.824 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.1968/0.2957, allocations: 4.981 MB / 431.3 MB, free: 7.57 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002304/0.298, allocations: 1.291 MB / 432.6 MB, free: 7.555 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003754/0.2984, allocations: 16.22 kB / 432.6 MB, free: 7.555 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002566/0.2987, allocations: 123.1 kB / 432.7 MB, free: 7.535 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004337/0.2991, allocations: 264.7 kB / 433 MB, free: 7.406 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006158/0.2997, allocations: 310.8 kB / 433.3 MB, free: 7.395 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008635/0.3006, allocations: 1.095 MB / 434.4 MB, free: 7.164 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002758/0.3009, allocations: 188.8 kB / 434.6 MB, free: 7.125 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004232/0.3013, allocations: 433.5 kB / 435 MB, free: 7.047 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004726/0.3018, allocations: 476.7 kB / 435.5 MB, free: 6.949 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001277/0.3019, allocations: 90.56 kB / 435.6 MB, free: 6.949 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002157/0.3021, allocations: 112.7 kB / 435.7 MB, free: 6.949 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001453/0.3022, allocations: 207.7 kB / 435.9 MB, free: 6.863 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003556/0.3026, allocations: 449.1 kB / 436.3 MB, free: 6.598 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001141/0.3037, allocations: 1.037 MB / 437.4 MB, free: 6.207 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.3037, allocations: 0.6562 kB / 437.4 MB, free: 6.207 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.3037, allocations: 0 / 437.4 MB, free: 6.207 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.13e-05/0.3038, allocations: 5.938 kB / 437.4 MB, free: 6.203 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.002474/0.3063, allocations: 1.28 MB / 438.6 MB, free: 5.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.131e-05/0.3063, allocations: 10.61 kB / 438.7 MB, free: 5.34 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001204/0.3064, allocations: 106.8 kB / 438.8 MB, free: 5.262 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001668/0.3066, allocations: 98.45 kB / 438.9 MB, free: 5.211 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006385/0.3072, allocations: 496.1 kB / 439.3 MB, free: 4.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.965e-05/0.3073, allocations: 53.5 kB / 439.4 MB, free: 4.812 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001014/0.3074, allocations: 66.7 kB / 439.5 MB, free: 4.789 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001387/0.3087, allocations: 0.6502 MB / 440.1 MB, free: 4.547 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.982e-05/0.3088, allocations: 1.062 kB / 440.1 MB, free: 4.547 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.405e-05/0.3088, allocations: 27.53 kB / 440.1 MB, free: 4.527 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.469e-05/0.3088, allocations: 14.78 kB / 440.1 MB, free: 4.527 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001669/0.3105, allocations: 0.6947 MB / 440.8 MB, free: 4.316 MB / 350.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.00395/0.3145, allocations: 2.381 MB / 443.2 MB, free: 2.855 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001488/0.316, allocations: 0.56 MB / 443.8 MB, free: 2.633 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00075/0.3167, allocations: 304.6 kB / 444.1 MB, free: 2.531 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.521e-05/0.3168, allocations: 17.45 kB / 444.1 MB, free: 2.523 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009141/0.3177, allocations: 423.6 kB / 444.5 MB, free: 2.344 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 1.863e-06/0.3177, allocations: 5.375 kB / 444.5 MB, free: 2.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=94): time 0.06873/0.3864, allocations: 15.39 MB / 459.9 MB, free: 12.55 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001221/0.3865, allocations: 140 kB / 460 MB, free: 12.39 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000717/0.3872, allocations: 0.5231 MB / 460.6 MB, free: 12.07 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000216/0.3875, allocations: 48.2 kB / 460.6 MB, free: 12.02 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003206/0.3878, allocations: 393.2 kB / 461 MB, free: 11.68 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003413/0.3881, allocations: 330.8 kB / 461.3 MB, free: 11.39 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003809/0.3885, allocations: 182.4 kB / 461.5 MB, free: 11.29 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002151/0.3887, allocations: 393.9 kB / 461.9 MB, free: 10.91 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002085/0.3908, allocations: 0.7198 MB / 462.6 MB, free: 10.55 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002336/0.3931, allocations: 0.9501 MB / 463.6 MB, free: 9.914 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004361/0.3975, allocations: 1.7 MB / 465.3 MB, free: 8.559 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/0.3975, allocations: 0 / 465.3 MB, free: 8.559 MB / 366.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02386/0.4214, allocations: 5.34 MB / 470.6 MB, free: 3.195 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.195e-05/0.4215, allocations: 67.39 kB / 470.7 MB, free: 3.117 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.85e-05/0.4215, allocations: 8 kB / 470.7 MB, free: 3.109 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03422/0.4557, allocations: 6.846 MB / 477.5 MB, free: 12.26 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007489/0.4564, allocations: 151.7 kB / 477.7 MB, free: 12.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007152/0.4636, allocations: 3.15 MB / 480.8 MB, free: 8.906 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001856/0.4654, allocations: 189.8 kB / 481 MB, free: 8.723 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001221/0.4656, allocations: 55.84 kB / 481 MB, free: 8.668 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.0004707/0.466, allocations: 222.5 kB / 481.3 MB, free: 8.441 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001738/0.4662, allocations: 85.27 kB / 481.3 MB, free: 8.359 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0223/0.4885, allocations: 5.064 MB / 486.4 MB, free: 3.281 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.985e-05/0.4885, allocations: 12 kB / 486.4 MB, free: 3.27 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.438e-06/0.4885, allocations: 4 kB / 486.4 MB, free: 3.266 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.891e-05/0.4886, allocations: 7.922 kB / 486.4 MB, free: 3.258 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001811/0.4904, allocations: 1.11 MB / 487.5 MB, free: 2.109 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.4904, allocations: 0 / 487.5 MB, free: 2.109 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005304/0.4909, allocations: 92.77 kB / 487.6 MB, free: 2.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03367/0.5246, allocations: 6.801 MB / 494.4 MB, free: 11.21 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002334/0.5248, allocations: 23.98 kB / 494.5 MB, free: 11.19 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006016/0.5308, allocations: 3.039 MB / 497.5 MB, free: 8.094 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.536e-06/0.5308, allocations: 2.25 kB / 497.5 MB, free: 8.094 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02445/0.5553, allocations: 5.95 MB / 0.4917 GB, free: 2.117 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003423/0.5556, allocations: 152.5 kB / 0.4918 GB, free: 1.949 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001756/0.5558, allocations: 23.98 kB / 0.4918 GB, free: 1.926 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001388/0.5572, allocations: 163.9 kB / 0.492 GB, free: 1.766 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000267/0.5575, allocations: 96.86 kB / 0.4921 GB, free: 1.672 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.14e-05/0.5576, allocations: 31.98 kB / 0.4921 GB, free: 1.641 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004508/0.558, allocations: 354.8 kB / 0.4924 GB, free: 1.297 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.558, allocations: 0 / 0.4924 GB, free: 1.297 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008024/0.5588, allocations: 260 kB / 0.4927 GB, free: 1.043 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.02549/0.5843, allocations: 6.533 MB / 0.4991 GB, free: 10.48 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.007076/0.5914, allocations: 2.103 MB / 0.5011 GB, free: 8.355 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.5914, allocations: 0 / 0.5011 GB, free: 8.355 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003517/0.5949, allocations: 1.019 MB / 0.5021 GB, free: 7.34 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008394/0.5957, allocations: 124.7 kB / 0.5022 GB, free: 7.227 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05577/0.6515, allocations: 15.89 MB / 0.5178 GB, free: 7.031 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005935/0.6521, allocations: 0.9545 MB / 0.5187 GB, free: 6.051 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003293/0.6524, allocations: 53.14 kB / 0.5187 GB, free: 6 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003809/0.6528, allocations: 287.3 kB / 0.519 GB, free: 5.719 MB / 430.1 MB Notification: Performance of SimCode: time 1.553e-06/0.6528, allocations: 0 / 0.519 GB, free: 5.719 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07027/0.7231, allocations: 29.71 MB / 0.548 GB, free: 8.273 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.99/13.72, allocations: 4 kB / 0.548 GB, free: 8.27 MB / 462.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate_fmu --startTime=0 --stopTime=200 --stepSize=0.0396747 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/HeatingNPN_NORGate/HeatingNPN_NORGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.43671308713965]