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.009756/0.009756, allocations: 114 kB / 21.97 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.001647/0.001647, allocations: 212.3 kB / 25.28 MB, free: 3.25 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.461/1.461, allocations: 207.6 MB / 236 MB, free: 9.98 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate",fmuType="cs",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.00189/0.00189, allocations: 54.89 kB / 348 MB, free: 10.11 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2869/0.2888, allocations: 49.15 MB / 397.2 MB, free: 8.957 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.005271/0.2941, allocations: 4.74 MB / 401.9 MB, free: 5.578 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002642/0.2967, allocations: 1.288 MB / 403.2 MB, free: 4.637 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004772/0.2972, allocations: 10.28 kB / 403.2 MB, free: 4.637 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003616/0.2976, allocations: 119.4 kB / 403.3 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005746/0.2981, allocations: 256.7 kB / 403.6 MB, free: 4.371 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008587/0.299, allocations: 300.1 kB / 403.9 MB, free: 4.203 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001326/0.3003, allocations: 1.049 MB / 404.9 MB, free: 3.68 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004078/0.3007, allocations: 191.9 kB / 405.1 MB, free: 3.559 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006311/0.3014, allocations: 420.3 kB / 405.5 MB, free: 3.371 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000616/0.302, allocations: 464.2 kB / 406 MB, free: 3.145 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001469/0.3021, allocations: 91.88 kB / 406 MB, free: 3.141 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002484/0.3024, allocations: 114.7 kB / 406.2 MB, free: 3.133 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001473/0.3025, allocations: 191.1 kB / 406.3 MB, free: 3.004 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000423/0.3029, allocations: 436.8 kB / 406.8 MB, free: 2.742 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001358/0.3043, allocations: 1 MB / 407.8 MB, free: 2.34 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.152e-06/0.3043, allocations: 1.062 kB / 407.8 MB, free: 2.34 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.3043, allocations: 0 / 407.8 MB, free: 2.34 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.805e-05/0.3043, allocations: 0 / 407.8 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.002504/0.3068, allocations: 1.163 MB / 408.9 MB, free: 1.582 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.34e-05/0.3069, allocations: 13.58 kB / 408.9 MB, free: 1.578 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.584e-05/0.3069, allocations: 16.62 kB / 409 MB, free: 1.574 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001039/0.307, allocations: 114.1 kB / 409.1 MB, free: 1.488 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001803/0.3072, allocations: 92.38 kB / 409.2 MB, free: 1.441 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007251/0.3079, allocations: 406.5 kB / 409.6 MB, free: 1.145 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.272e-05/0.308, allocations: 47.81 kB / 409.6 MB, free: 1.125 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001122/0.3081, allocations: 61.23 kB / 409.7 MB, free: 1.105 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001495/0.3096, allocations: 0.6379 MB / 410.3 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.515e-05/0.3096, allocations: 1.688 kB / 410.3 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.231e-05/0.3097, allocations: 24.91 kB / 410.3 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.55e-05/0.3097, allocations: 15.44 kB / 410.3 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001974/0.3116, allocations: 0.6794 MB / 411 MB, free: 0.6211 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.006058/0.3177, allocations: 2.247 MB / 413.3 MB, free: 14.79 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0022/0.3199, allocations: 0.5543 MB / 413.8 MB, free: 14.49 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007845/0.3207, allocations: 315.2 kB / 414.1 MB, free: 14.33 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.291e-05/0.3207, allocations: 11.05 kB / 414.1 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001059/0.3218, allocations: 434 kB / 414.6 MB, free: 14.04 MB / 334.1 MB Notification: Performance of pre-optimization done (n=54): time 3.967e-06/0.3218, allocations: 0 / 414.6 MB, free: 14.04 MB / 334.1 MB Notification: Performance of matching and sorting (n=94): time 0.07273/0.3945, allocations: 15.23 MB / 429.8 MB, free: 2.332 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001275/0.3947, allocations: 141.5 kB / 429.9 MB, free: 2.164 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007364/0.3954, allocations: 0.491 MB / 430.4 MB, free: 1.66 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002607/0.3957, allocations: 45.7 kB / 430.5 MB, free: 1.609 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003818/0.396, allocations: 376.7 kB / 430.8 MB, free: 1.234 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004729/0.3965, allocations: 329.2 kB / 431.2 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004649/0.397, allocations: 182.5 kB / 431.3 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002033/0.3972, allocations: 378.8 kB / 431.7 MB, free: 356 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002205/0.3994, allocations: 0.7163 MB / 432.4 MB, free: 15.63 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002369/0.4018, allocations: 0.9303 MB / 433.4 MB, free: 14.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004442/0.4062, allocations: 1.662 MB / 435 MB, free: 12.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/0.4062, allocations: 0 / 435 MB, free: 12.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02381/0.43, allocations: 5.308 MB / 440.3 MB, free: 7.535 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001166/0.4301, allocations: 63.39 kB / 440.4 MB, free: 7.461 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.681e-05/0.4302, allocations: 4 kB / 440.4 MB, free: 7.457 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0347/0.4649, allocations: 6.848 MB / 447.2 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007778/0.4656, allocations: 139.8 kB / 447.4 MB, free: 468 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007442/0.4731, allocations: 3.165 MB / 450.5 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001922/0.475, allocations: 175.8 kB / 450.7 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002591/0.4753, allocations: 47.97 kB / 450.8 MB, free: 13.02 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.0006952/0.476, allocations: 221.7 kB / 451 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002587/0.4762, allocations: 79.53 kB / 451.1 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02257/0.4988, allocations: 5.064 MB / 456.1 MB, free: 7.633 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.847e-05/0.4988, allocations: 12 kB / 456.1 MB, free: 7.621 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.044e-05/0.4988, allocations: 0 / 456.1 MB, free: 7.621 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.185e-05/0.4988, allocations: 3.984 kB / 456.1 MB, free: 7.617 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002237/0.5011, allocations: 1.072 MB / 457.2 MB, free: 6.504 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-05/0.5011, allocations: 4 kB / 457.2 MB, free: 6.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006368/0.5017, allocations: 95.88 kB / 457.3 MB, free: 6.406 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03485/0.5366, allocations: 6.789 MB / 464.1 MB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003314/0.5369, allocations: 27.97 kB / 464.1 MB, free: 15.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006818/0.5437, allocations: 3.045 MB / 467.2 MB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.5437, allocations: 0 / 467.2 MB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02476/0.5685, allocations: 5.948 MB / 473.1 MB, free: 6.5 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002522/0.5688, allocations: 67.55 kB / 473.2 MB, free: 6.434 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000336/0.5691, allocations: 20 kB / 473.2 MB, free: 6.414 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001482/0.5706, allocations: 167.8 kB / 473.4 MB, free: 6.25 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003251/0.5709, allocations: 108.8 kB / 473.5 MB, free: 6.145 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001234/0.571, allocations: 27.98 kB / 473.5 MB, free: 6.117 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004584/0.5715, allocations: 334.9 kB / 473.8 MB, free: 5.793 MB / 382.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.5715, allocations: 0 / 473.8 MB, free: 5.793 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009038/0.5724, allocations: 255.9 kB / 474.1 MB, free: 5.543 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.02484/0.5972, allocations: 6.528 MB / 480.6 MB, free: 14.97 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00713/0.6044, allocations: 2.087 MB / 482.7 MB, free: 12.86 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.571e-06/0.6044, allocations: 0 / 482.7 MB, free: 12.86 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003633/0.608, allocations: 1.015 MB / 483.7 MB, free: 11.85 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009836/0.609, allocations: 130.4 kB / 483.8 MB, free: 11.72 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05631/0.6653, allocations: 15.67 MB / 499.5 MB, free: 11.78 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007914/0.6661, allocations: 0.9389 MB / 0.4887 GB, free: 10.81 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004262/0.6665, allocations: 54.06 kB / 0.4888 GB, free: 10.75 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005209/0.667, allocations: 263.3 kB / 0.489 GB, free: 10.5 MB / 414.1 MB Notification: Performance of SimCode: time 2.615e-06/0.667, allocations: 0 / 0.489 GB, free: 10.5 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06612/0.7332, allocations: 30.51 MB / 0.5188 GB, free: 11.89 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.05/14.78, allocations: 8.016 kB / 0.5188 GB, free: 11.88 MB / 446.1 MB " [Timeout remaining time 645] (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: 17.799748505000025]