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.001788/0.001788, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.002388/0.002388, allocations: 216.9 kB / 23.75 MB, free: 4.668 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.513/1.513, allocations: 230.6 MB / 257.5 MB, free: 8.012 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.001634/0.001634, allocations: 47.92 kB / 377.8 MB, free: 3.137 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2668/0.2684, allocations: 53.36 MB / 431.2 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.007985/0.2764, allocations: 5.01 MB / 436.2 MB, free: 1.836 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003352/0.2797, allocations: 1.299 MB / 437.5 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006864/0.2804, allocations: 15.94 kB / 437.5 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003994/0.2808, allocations: 126.7 kB / 437.6 MB, free: 396 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006253/0.2815, allocations: 261.7 kB / 437.9 MB, free: 132 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009163/0.2824, allocations: 307.5 kB / 438.2 MB, free: 15.83 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001379/0.2837, allocations: 1.103 MB / 439.3 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000375/0.2841, allocations: 183 kB / 439.4 MB, free: 14.53 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005693/0.2847, allocations: 438.5 kB / 439.9 MB, free: 14.1 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006588/0.2854, allocations: 474 kB / 440.3 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001346/0.2855, allocations: 92 kB / 440.4 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002145/0.2857, allocations: 116 kB / 440.5 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001766/0.2859, allocations: 207.2 kB / 440.7 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004114/0.2863, allocations: 449.8 kB / 441.2 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001156/0.2874, allocations: 1.039 MB / 442.2 MB, free: 11.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.2874, allocations: 4 kB / 442.2 MB, free: 11.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2875, allocations: 0 / 442.2 MB, free: 11.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.227e-05/0.2875, allocations: 0 / 442.2 MB, free: 11.75 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.002462/0.2899, allocations: 1.206 MB / 443.4 MB, free: 10.49 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.29, allocations: 12.03 kB / 443.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001283/0.2901, allocations: 102.7 kB / 443.5 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001543/0.2902, allocations: 100.3 kB / 443.6 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007232/0.291, allocations: 430.1 kB / 444.1 MB, free: 9.828 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.284e-05/0.291, allocations: 45.69 kB / 444.1 MB, free: 9.781 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001125/0.2911, allocations: 68.33 kB / 444.2 MB, free: 9.715 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001321/0.2924, allocations: 0.6546 MB / 444.8 MB, free: 9.055 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.96e-05/0.2925, allocations: 4 kB / 444.8 MB, free: 9.051 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.823e-05/0.2925, allocations: 28 kB / 444.9 MB, free: 9.023 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.514e-05/0.2926, allocations: 19.94 kB / 444.9 MB, free: 9.004 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001638/0.2942, allocations: 0.696 MB / 445.6 MB, free: 8.309 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.003883/0.2981, allocations: 2.308 MB / 447.9 MB, free: 5.852 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00141/0.2995, allocations: 0.5521 MB / 448.4 MB, free: 5.289 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000718/0.3002, allocations: 325.8 kB / 448.7 MB, free: 4.969 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.048e-05/0.3003, allocations: 12.42 kB / 448.8 MB, free: 4.957 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009172/0.3012, allocations: 421.4 kB / 449.2 MB, free: 4.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 1.794e-06/0.3012, allocations: 0 / 449.2 MB, free: 4.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=94): time 0.07171/0.3729, allocations: 15.24 MB / 464.4 MB, free: 5.215 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001243/0.373, allocations: 141.5 kB / 464.6 MB, free: 5.043 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007357/0.3737, allocations: 0.5225 MB / 465.1 MB, free: 4.512 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001836/0.3739, allocations: 41.7 kB / 465.1 MB, free: 4.465 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000354/0.3743, allocations: 404.7 kB / 465.5 MB, free: 4.062 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003618/0.3746, allocations: 329.2 kB / 465.8 MB, free: 3.738 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003703/0.375, allocations: 182.6 kB / 466 MB, free: 3.555 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002098/0.3752, allocations: 390.7 kB / 466.4 MB, free: 3.164 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002064/0.3773, allocations: 0.7243 MB / 467.1 MB, free: 2.438 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002415/0.3797, allocations: 0.9551 MB / 468.1 MB, free: 1.395 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004221/0.3839, allocations: 1.689 MB / 469.8 MB, free: 15.61 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.815e-06/0.3839, allocations: 4 kB / 469.8 MB, free: 15.61 MB / 382.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02477/0.4087, allocations: 5.339 MB / 475.1 MB, free: 10.23 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.293e-05/0.4088, allocations: 71.52 kB / 475.2 MB, free: 10.15 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.948e-05/0.4088, allocations: 8 kB / 475.2 MB, free: 10.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0362/0.445, allocations: 6.841 MB / 482 MB, free: 3.289 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007199/0.4457, allocations: 155.7 kB / 482.2 MB, free: 3.137 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007199/0.4529, allocations: 3.157 MB / 485.3 MB, free: 15.92 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001708/0.4546, allocations: 183.8 kB / 485.5 MB, free: 15.74 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001176/0.4548, allocations: 51.91 kB / 485.6 MB, free: 15.69 MB / 398.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.0004434/0.4552, allocations: 225.7 kB / 485.8 MB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001576/0.4554, allocations: 87.48 kB / 485.9 MB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02344/0.4788, allocations: 5.075 MB / 490.9 MB, free: 10.28 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.722e-05/0.4788, allocations: 8 kB / 491 MB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.4788, allocations: 0 / 491 MB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.223e-05/0.4788, allocations: 7.969 kB / 491 MB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001548/0.4804, allocations: 1.076 MB / 492 MB, free: 9.148 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.4804, allocations: 0 / 492 MB, free: 9.148 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005312/0.4809, allocations: 95.88 kB / 492.1 MB, free: 9.055 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.035/0.5159, allocations: 6.793 MB / 498.9 MB, free: 2.246 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002444/0.5162, allocations: 23.97 kB / 498.9 MB, free: 2.223 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006253/0.5224, allocations: 3.041 MB / 0.4902 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/0.5224, allocations: 0.5 kB / 0.4902 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02551/0.5479, allocations: 5.952 MB / 0.496 GB, free: 9.145 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001947/0.5481, allocations: 79.39 kB / 0.4961 GB, free: 9.066 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001826/0.5483, allocations: 24 kB / 0.4961 GB, free: 9.043 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001432/0.5497, allocations: 171.8 kB / 0.4963 GB, free: 8.875 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002709/0.55, allocations: 96.83 kB / 0.4964 GB, free: 8.781 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.922e-05/0.5501, allocations: 31.98 kB / 0.4964 GB, free: 8.75 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004319/0.5505, allocations: 358.8 kB / 0.4968 GB, free: 8.402 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5505, allocations: 0 / 0.4968 GB, free: 8.402 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007425/0.5513, allocations: 263.9 kB / 0.497 GB, free: 8.145 MB / 414.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.02646/0.5777, allocations: 6.524 MB / 0.5034 GB, free: 1.574 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.007201/0.5849, allocations: 2.099 MB / 0.5054 GB, free: 15.45 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.634e-06/0.5849, allocations: 4.188 kB / 0.5054 GB, free: 15.45 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003672/0.5886, allocations: 1.015 MB / 0.5064 GB, free: 14.43 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007809/0.5894, allocations: 136.1 kB / 0.5066 GB, free: 14.31 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05809/0.6475, allocations: 15.88 MB / 0.5221 GB, free: 14.09 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006363/0.6481, allocations: 0.9507 MB / 0.523 GB, free: 13.11 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003557/0.6485, allocations: 62.25 kB / 0.5231 GB, free: 13.05 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003816/0.6489, allocations: 275.3 kB / 0.5233 GB, free: 12.78 MB / 446.1 MB Notification: Performance of SimCode: time 1.052e-06/0.6489, allocations: 0 / 0.5233 GB, free: 12.78 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2727/0.9216, allocations: 30.94 MB / 0.5535 GB, free: 100.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.47/15.39, allocations: 9.125 kB / 0.5535 GB, free: 100.2 MB / 446.1 MB " [Timeout remaining time 644] (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: 18.257071909029037]