Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.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.001917/0.001917, allocations: 113.6 kB / 21.19 MB, free: 0.7031 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.002246/0.002246, allocations: 208.6 kB / 24.49 MB, free: 4.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.712/1.712, allocations: 207.6 MB / 235.3 MB, free: 10 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_OrGate,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003042/0.003042, allocations: 51.92 kB / 347.2 MB, free: 10.11 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3711/0.3742, allocations: 49.16 MB / 396.4 MB, free: 8.965 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.006335/0.3805, allocations: 4.733 MB / 401.1 MB, free: 5.586 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002873/0.3834, allocations: 1.296 MB / 402.4 MB, free: 4.637 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004933/0.3839, allocations: 10.09 kB / 402.4 MB, free: 4.637 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000365/0.3843, allocations: 114 kB / 402.5 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005974/0.3849, allocations: 257.5 kB / 402.8 MB, free: 4.375 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009515/0.3858, allocations: 300.6 kB / 403.1 MB, free: 4.207 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001283/0.3871, allocations: 1.049 MB / 404.1 MB, free: 3.684 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003861/0.3875, allocations: 191.8 kB / 404.3 MB, free: 3.562 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005948/0.3881, allocations: 417.6 kB / 404.7 MB, free: 3.375 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006168/0.3887, allocations: 466.2 kB / 405.2 MB, free: 3.148 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001766/0.3889, allocations: 87.78 kB / 405.2 MB, free: 3.148 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002992/0.3892, allocations: 115.3 kB / 405.4 MB, free: 3.141 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001759/0.3893, allocations: 190.9 kB / 405.5 MB, free: 3.012 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004576/0.3898, allocations: 441.2 kB / 406 MB, free: 2.746 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001367/0.3912, allocations: 0.9965 MB / 407 MB, free: 2.348 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.3912, allocations: 4 kB / 407 MB, free: 2.344 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.3912, allocations: 4.969 kB / 407 MB, free: 2.34 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.502e-05/0.3912, allocations: 0 / 407 MB, free: 2.34 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 152 * Number of variables: 152 Notification: Performance of Generate backend data structure: time 0.00245/0.3936, allocations: 1.164 MB / 408.1 MB, free: 1.582 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.981e-05/0.3937, allocations: 13.58 kB / 408.2 MB, free: 1.578 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001306/0.3938, allocations: 101.1 kB / 408.3 MB, free: 1.504 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000201/0.394, allocations: 93.75 kB / 408.3 MB, free: 1.457 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007412/0.3948, allocations: 410 kB / 408.7 MB, free: 1.156 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.557e-05/0.3948, allocations: 43.23 kB / 408.8 MB, free: 1.137 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001189/0.3949, allocations: 61.62 kB / 408.9 MB, free: 1.117 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001493/0.3964, allocations: 0.6426 MB / 409.5 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.504e-05/0.3964, allocations: 0 / 409.5 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.737e-05/0.3965, allocations: 26.48 kB / 409.5 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.281e-05/0.3965, allocations: 14.19 kB / 409.5 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001722/0.3982, allocations: 0.6782 MB / 410.2 MB, free: 0.625 MB / 318.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.004216/0.4025, allocations: 2.254 MB / 412.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001515/0.404, allocations: 0.5558 MB / 413 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007469/0.4047, allocations: 306.8 kB / 413.3 MB, free: 14.33 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.975e-05/0.4048, allocations: 10.92 kB / 413.3 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00106/0.4058, allocations: 429.5 kB / 413.8 MB, free: 14.04 MB / 334.1 MB Notification: Performance of pre-optimization done (n=54): time 2.294e-06/0.4058, allocations: 1.406 kB / 413.8 MB, free: 14.04 MB / 334.1 MB Notification: Performance of matching and sorting (n=94): time 0.07543/0.4813, allocations: 15.23 MB / 429 MB, free: 2.355 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000138/0.4814, allocations: 149.5 kB / 429.1 MB, free: 2.18 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007731/0.4822, allocations: 498.9 kB / 429.6 MB, free: 1.684 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002361/0.4824, allocations: 45.69 kB / 429.7 MB, free: 1.633 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003415/0.4828, allocations: 376.7 kB / 430 MB, free: 1.258 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003456/0.4831, allocations: 321.2 kB / 430.3 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003725/0.4835, allocations: 182.5 kB / 430.5 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002154/0.4837, allocations: 382.8 kB / 430.9 MB, free: 384 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002146/0.4859, allocations: 0.7202 MB / 431.6 MB, free: 15.65 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0023/0.4882, allocations: 0.9265 MB / 432.5 MB, free: 14.65 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005273/0.4934, allocations: 1.662 MB / 434.2 MB, free: 12.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.213e-05/0.4934, allocations: 4 kB / 434.2 MB, free: 12.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02524/0.5187, allocations: 5.304 MB / 439.5 MB, free: 7.562 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001242/0.5188, allocations: 67.41 kB / 439.6 MB, free: 7.484 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.886e-05/0.5188, allocations: 4 kB / 439.6 MB, free: 7.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03555/0.5544, allocations: 6.844 MB / 446.4 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007408/0.5551, allocations: 135.8 kB / 446.6 MB, free: 500 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007473/0.5626, allocations: 3.172 MB / 449.7 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001892/0.5645, allocations: 179.9 kB / 449.9 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001183/0.5646, allocations: 43.97 kB / 450 MB, free: 13.04 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (50): * Single equations (assignments): 46 * 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.0005067/0.5651, allocations: 217.7 kB / 450.2 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001732/0.5653, allocations: 79.52 kB / 450.2 MB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02311/0.5884, allocations: 5.064 MB / 455.3 MB, free: 7.656 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.073e-05/0.5884, allocations: 8 kB / 455.3 MB, free: 7.648 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.355e-05/0.5884, allocations: 256 / 455.3 MB, free: 7.648 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.949e-05/0.5885, allocations: 7.984 kB / 455.3 MB, free: 7.641 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002071/0.5905, allocations: 1.08 MB / 456.4 MB, free: 6.516 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/0.5905, allocations: 0 / 456.4 MB, free: 6.516 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000535/0.5911, allocations: 87.89 kB / 456.5 MB, free: 6.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03617/0.6273, allocations: 6.797 MB / 463.3 MB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003131/0.6276, allocations: 23.98 kB / 463.3 MB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006864/0.6344, allocations: 3.041 MB / 466.3 MB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.572e-06/0.6344, allocations: 7.938 kB / 466.4 MB, free: 12.49 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02633/0.6608, allocations: 5.944 MB / 472.3 MB, free: 6.52 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003589/0.6611, allocations: 67.55 kB / 472.4 MB, free: 6.453 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001772/0.6613, allocations: 20.06 kB / 472.4 MB, free: 6.434 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001461/0.6628, allocations: 175.7 kB / 472.6 MB, free: 6.262 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000299/0.6631, allocations: 96.83 kB / 472.7 MB, free: 6.168 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.803e-05/0.6632, allocations: 35.97 kB / 472.7 MB, free: 6.133 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004701/0.6636, allocations: 334.9 kB / 473 MB, free: 5.809 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.6636, allocations: 0 / 473 MB, free: 5.809 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008422/0.6645, allocations: 263.9 kB / 473.3 MB, free: 5.551 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.02771/0.6922, allocations: 6.513 MB / 479.8 MB, free: 15 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00784/0.7, allocations: 2.09 MB / 481.9 MB, free: 12.88 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.614e-06/0.7, allocations: 0 / 481.9 MB, free: 12.88 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003713/0.7037, allocations: 1.012 MB / 482.9 MB, free: 11.87 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009358/0.7047, allocations: 142.4 kB / 483 MB, free: 11.73 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05956/0.7642, allocations: 15.66 MB / 498.7 MB, free: 11.8 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007186/0.765, allocations: 0.935 MB / 499.6 MB, free: 10.84 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004453/0.7654, allocations: 58.06 kB / 499.7 MB, free: 10.78 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004241/0.7658, allocations: 263.3 kB / 499.9 MB, free: 10.52 MB / 414.1 MB Notification: Performance of SimCode: time 2.074e-06/0.7658, allocations: 0 / 499.9 MB, free: 10.52 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08473/0.8506, allocations: 30.48 MB / 0.518 GB, free: 11.94 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.43/16.28, allocations: 11.91 kB / 0.518 GB, free: 11.93 MB / 446.1 MB " [Timeout remaining time 644] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate_fmu --startTime=0 --stopTime=200 --stepSize=0.0396668 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/HeatingNPN_OrGate/HeatingNPN_OrGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.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: 19.483615146018565]