Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "[:1:22-1:33:writable] Warning: Modelica only supports 32-bit signed integers! Transforming: 13743895347 into a real [:1:1-1:33:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0003749/0.0003749, allocations: 0 / 0, free: 0 / 0 " [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.0004662/0.0004662, allocations: 0 / 0, free: 0 / 0 " [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 0.4109/0.4109, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 179] 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: simulate(Modelica.Electrical.Digital.Examples.HalfAdder,startTime=0,stopTime=5,tolerance=1e-06,numberOfIntervals=5010,outputFormat="mat",variableFilter="time|Adder.AND.G2.x|Adder.AND.G2.y|Adder.XOR.G2.x|Adder.XOR.G2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder",simflags="-alarm=480 -emit_protected -lv LOG_STATS") simulate(Modelica.Electrical.Digital.Examples.HalfAdder,startTime=0,stopTime=5,tolerance=1e-06,numberOfIntervals=5010,outputFormat="mat",variableFilter="time|Adder.AND.G2.x|Adder.AND.G2.y|Adder.XOR.G2.x|Adder.XOR.G2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder",simflags="-alarm=480 -emit_protected -lv LOG_STATS") [Timeout 1140] "Notification: Performance of FrontEnd - loaded program: time 8.42e-07/8.42e-07, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - Absyn->SCode: time 3.1e-05/3.184e-05, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.005209/0.00524, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instExpressions: time 0.005753/0.01099, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.updateImplicitVariability: time 0.0002565/0.01125, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeComponents: time 0.0002863/0.01154, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeBindings: time 0.0004167/0.01195, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeClassSections: time 0.000734/0.01269, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.flatten: time 0.001014/0.0137, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.resolveConnections: time 0.0003581/0.01406, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFEvalConstants.evaluate: time 0.00375/0.01781, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFSimplifyModel.simplify: time 0.0004828/0.01829, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFPackage.collectConstants: time 0.0001548/0.01845, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.collectFunctions: time 0.0001267/0.01857, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFScalarize.scalarize: time 0.0003415/0.01891, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFVerifyModel.verify: time 0.0005912/0.01951, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFConvertDAE.convert: time 0.002694/0.0222, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - DAE generated: time 0.0001511/0.02235, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd: time 3.126e-06/0.02235, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Transformations before backend: time 1.678e-05/0.02237, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.004213/0.02658, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare preOptimizeDAE: time 0.000118/0.0267, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006624/0.02736, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evaluateParameters (simulation): time 0.00167/0.02903, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001154/0.02915, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002041/0.02935, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt clockPartitioning (simulation): time 0.002458/0.03181, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt findStateOrder (simulation): time 1.531e-05/0.03183, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001674/0.03199, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.062e-05/0.03201, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001735/0.03374, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004941/0.03868, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt comSubExp (simulation): time 0.001591/0.04027, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt resolveLoops (simulation): time 0.0011/0.04137, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evalFunc (simulation): time 1.843e-05/0.04139, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001826/0.04322, allocations: 0 / 0, free: 0 / 0 Notification: Performance of pre-optimization done (n=24): time 7.88e-05/0.0433, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=24): time 0.005317/0.04861, allocations: 0 / 0, free: 0 / 0 Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001947/0.04881, allocations: 0 / 0, free: 0 / 0 Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005509/0.05432, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectPreVariables (initialization): time 0.0002458/0.05456, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialEqns (initialization): time 0.0003698/0.05493, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialBindings (initialization): time 0.0002408/0.05517, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009353/0.05611, allocations: 0 / 0, free: 0 / 0 Notification: Performance of setup shared object (initialization): time 0.000385/0.05649, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preBalanceInitialSystem (initialization): time 0.001121/0.05761, allocations: 0 / 0, free: 0 / 0 Notification: Performance of partitionIndependentBlocks (initialization): time 0.001178/0.05879, allocations: 0 / 0, free: 0 / 0 Notification: Performance of analyzeInitialSystem (initialization): time 0.002018/0.06081, allocations: 0 / 0, free: 0 / 0 Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.55e-06/0.06082, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=30) (initialization): time 0.004049/0.06487, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002216/0.06509, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/0.0651, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (initialization): time 1.827e-05/0.06511, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000173/0.06529, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.313e-05/0.0653, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005527/0.06585, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005041/0.06636, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 28 ($PRE.Adder.XOR.G2.y,$PRE.Adder.AND.G2.y,Adder.XOR.G1.auxiliary_n,Adder.AND.G1.auxiliary_n,b.y,a.y,Adder.XOR.G2.t_next,Adder.XOR.G2.lh,Adder.XOR.G2.y_old,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.delayTime,Adder.XOR.G2.y,Adder.XOR.G2.x,$PRE.Adder.XOR.G2.x,$PRE.Adder.XOR.G1.auxiliary_n,$whenCondition2,$whenCondition1,Adder.AND.G2.t_next,Adder.AND.G2.lh,Adder.AND.G2.y_old,Adder.AND.G2.y_auxiliary,Adder.AND.G2.delayTime,Adder.AND.G2.y,Adder.AND.G2.x,$PRE.Adder.AND.G2.x,$PRE.Adder.AND.G1.auxiliary_n,$whenCondition4,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00224/0.0686, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006018/0.0692, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009741/0.07017, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.582e-06/0.07018, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt constantLinearSystem (simulation): time 6.613e-06/0.07019, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.634e-06/0.07019, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003051/0.07325, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.07325, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001529/0.0734, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (simulation): time 7.755e-06/0.07341, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002623/0.07367, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.46e-06/0.07368, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.07368, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004656/0.07834, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeConstants (simulation): time 0.003286/0.08162, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005398/0.08216, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005404/0.0827, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007694/0.08347, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005202/0.08399, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sorting global known variables: time 0.004029/0.08802, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sort global known variables: time 5.169e-05/0.08808, allocations: 0 / 0, free: 0 / 0 Notification: Performance of remove unused functions: time 0.001535/0.08961, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 22 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,a.y,b.y,Adder.AND.G1.auxiliary_n,Adder.AND.G2.x,Adder.AND.G2.y,Adder.AND.G2.delayTime,Adder.AND.G2.y_auxiliary,Adder.AND.G2.y_old,Adder.AND.G2.lh,Adder.AND.G2.t_next,Adder.XOR.G1.auxiliary_n,Adder.XOR.G2.x,Adder.XOR.G2.y,Adder.XOR.G2.delayTime,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.y_old,Adder.XOR.G2.lh,Adder.XOR.G2.t_next) * Number of discrete states: 22 (Adder.XOR.G1.auxiliary_n,Adder.AND.G1.auxiliary_n,Adder.XOR.G2.y,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.t_next,Adder.XOR.G2.delayTime,Adder.XOR.G2.lh,Adder.XOR.G2.y_old,$whenCondition2,$whenCondition1,Adder.XOR.G2.x,Adder.AND.G2.y,Adder.AND.G2.y_auxiliary,Adder.AND.G2.t_next,Adder.AND.G2.delayTime,Adder.AND.G2.lh,Adder.AND.G2.y_old,$whenCondition4,$whenCondition3,Adder.AND.G2.x,b.y,a.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005425/0.09015, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created initialization part: time 0.003131/0.09328, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created event and clocks part: time 4.628e-06/0.09329, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created simulation system equations: time 0.001772/0.09506, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002835/0.0979, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008065/0.106, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002078/0.108, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: alias equations: time 0.001599/0.1096, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001014/0.1107, allocations: 0 / 0, free: 0 / 0 Notification: Performance of SimCode: time 0.0003615/0.111, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Templates: time 0.004022/0.115, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 1140] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.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: 1.2287653580024198]