Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Adder.AND.G2.x|Adder.AND.G2.y|Adder.XOR.G2.x|Adder.XOR.G2.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder") translateModel(Modelica.Electrical.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Adder.AND.G2.x|Adder.AND.G2.y|Adder.XOR.G2.x|Adder.XOR.G2.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001106/0.001106, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.247/1.247, allocations: 205.1 MB / 223.7 MB, free: 8.48 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009199/0.0009198, allocations: 101 kB / 271.2 MB, free: 8.441 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007646/0.0007646, allocations: 39.94 kB / 327.2 MB, free: 336 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1977/0.1985, allocations: 46.61 MB / 373.8 MB, free: 45.63 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002652/0.2012, allocations: 2.162 MB / 376 MB, free: 44.09 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001627/0.2028, allocations: 1.087 MB / 377.1 MB, free: 43.26 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.655e-05/0.2029, allocations: 1.219 kB / 377.1 MB, free: 43.26 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001325/0.2031, allocations: 26.34 kB / 377.1 MB, free: 43.23 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 8.908e-05/0.2032, allocations: 47.23 kB / 377.1 MB, free: 43.2 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002582/0.2034, allocations: 112.4 kB / 377.2 MB, free: 43.1 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002795/0.2037, allocations: 336.8 kB / 377.6 MB, free: 42.91 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001753/0.2039, allocations: 114.4 kB / 377.7 MB, free: 42.85 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007573/0.2047, allocations: 0.9213 MB / 378.6 MB, free: 42.51 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001694/0.2048, allocations: 175.7 kB / 378.8 MB, free: 42.41 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.046e-05/0.2049, allocations: 12.66 kB / 378.8 MB, free: 42.41 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.455e-05/0.205, allocations: 13.31 kB / 378.8 MB, free: 42.41 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001374/0.2051, allocations: 159.2 kB / 379 MB, free: 42.32 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001893/0.2053, allocations: 269.5 kB / 379.2 MB, free: 42.11 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005514/0.2059, allocations: 0.9402 MB / 380.2 MB, free: 41.37 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.349e-06/0.2059, allocations: 0 / 380.2 MB, free: 41.37 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.2059, allocations: 0 / 380.2 MB, free: 41.37 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.166e-06/0.2059, allocations: 0 / 380.2 MB, free: 41.37 MB / 298.7 MB 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.0009877/0.2069, allocations: 1.113 MB / 381.3 MB, free: 40.39 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.691e-05/0.207, allocations: 13.06 kB / 381.3 MB, free: 40.38 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001168/0.2071, allocations: 84.38 kB / 381.4 MB, free: 40.34 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004059/0.2075, allocations: 424.4 kB / 381.8 MB, free: 39.97 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.617e-05/0.2075, allocations: 18.81 kB / 381.8 MB, free: 39.96 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.028e-05/0.2076, allocations: 18.94 kB / 381.8 MB, free: 39.96 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005279/0.2081, allocations: 313 kB / 382.1 MB, free: 39.77 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.2081, allocations: 0 / 382.1 MB, free: 39.77 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.102e-05/0.2082, allocations: 10.88 kB / 382.1 MB, free: 39.77 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.595e-06/0.2082, allocations: 2.656 kB / 382.1 MB, free: 39.77 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004112/0.2086, allocations: 206.3 kB / 382.3 MB, free: 39.67 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001151/0.2098, allocations: 0.8796 MB / 383.2 MB, free: 38.97 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004213/0.2102, allocations: 218.7 kB / 383.4 MB, free: 38.85 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002633/0.2105, allocations: 162 kB / 383.6 MB, free: 38.76 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.641e-05/0.2105, allocations: 0.9688 kB / 383.6 MB, free: 38.76 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004467/0.211, allocations: 389.5 kB / 384 MB, free: 38.45 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.683e-06/0.211, allocations: 0 / 384 MB, free: 38.45 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.001225/0.2122, allocations: 0.7353 MB / 384.7 MB, free: 38.04 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.139e-05/0.2123, allocations: 175.5 kB / 384.9 MB, free: 37.84 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001176/0.2135, allocations: 1.004 MB / 385.9 MB, free: 37.14 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.754e-05/0.2135, allocations: 33.7 kB / 385.9 MB, free: 37.1 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.104e-05/0.2136, allocations: 161.8 kB / 386.1 MB, free: 36.94 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.603e-05/0.2137, allocations: 59.28 kB / 386.1 MB, free: 36.88 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001778/0.2139, allocations: 165 kB / 386.3 MB, free: 36.71 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.257e-05/0.2139, allocations: 342.7 kB / 386.6 MB, free: 36.37 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002147/0.2141, allocations: 128.4 kB / 386.8 MB, free: 36.24 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002257/0.2144, allocations: 164.2 kB / 386.9 MB, free: 36.07 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004374/0.2148, allocations: 476.8 kB / 387.4 MB, free: 35.54 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.2148, allocations: 7.938 kB / 387.4 MB, free: 35.53 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007089/0.2156, allocations: 0.5819 MB / 388 MB, free: 34.92 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.539e-05/0.2156, allocations: 134.8 kB / 388.1 MB, free: 34.76 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.2156, allocations: 4 kB / 388.1 MB, free: 34.76 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.34e-05/0.2156, allocations: 4.031 kB / 388.1 MB, free: 34.75 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.65e-05/0.2157, allocations: 19.98 kB / 388.1 MB, free: 34.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.201e-06/0.2157, allocations: 0 / 388.1 MB, free: 34.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002504/0.216, allocations: 39.75 kB / 388.2 MB, free: 34.7 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.973e-05/0.2161, allocations: 116.8 kB / 388.3 MB, free: 34.58 MB / 298.7 MB 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.0004245/0.2165, allocations: 0.5298 MB / 388.8 MB, free: 34.02 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.702e-05/0.2166, allocations: 75.16 kB / 388.9 MB, free: 33.95 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001742/0.2168, allocations: 130.4 kB / 389 MB, free: 33.8 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.2168, allocations: 0 / 389 MB, free: 33.8 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.2168, allocations: 0 / 389 MB, free: 33.8 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.2168, allocations: 3.984 kB / 389 MB, free: 33.8 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005348/0.2174, allocations: 0.6257 MB / 389.6 MB, free: 33.12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.2174, allocations: 3.938 kB / 389.6 MB, free: 33.12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.847e-05/0.2174, allocations: 15.98 kB / 389.7 MB, free: 33.11 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.2174, allocations: 4 kB / 389.7 MB, free: 33.1 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.206e-05/0.2175, allocations: 23.98 kB / 389.7 MB, free: 33.08 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.2175, allocations: 4 kB / 389.7 MB, free: 33.07 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.2175, allocations: 0 / 389.7 MB, free: 33.07 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001257/0.2187, allocations: 1.508 MB / 391.2 MB, free: 31.48 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005345/0.2193, allocations: 0.4957 MB / 391.7 MB, free: 30.96 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.029e-05/0.2194, allocations: 24 kB / 391.7 MB, free: 30.94 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001778/0.2196, allocations: 31.91 kB / 391.8 MB, free: 30.91 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001347/0.2197, allocations: 47.95 kB / 391.8 MB, free: 30.86 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.181e-05/0.2198, allocations: 115.9 kB / 391.9 MB, free: 30.75 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0006862/0.2205, allocations: 0.7251 MB / 392.6 MB, free: 30.03 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2205, allocations: 3.938 kB / 392.6 MB, free: 30.02 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004368/0.221, allocations: 87.91 kB / 392.7 MB, free: 29.94 MB / 298.7 MB 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.0001337/0.2211, allocations: 142.7 kB / 392.9 MB, free: 29.79 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006668/0.2218, allocations: 0.6497 MB / 393.5 MB, free: 29.09 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.2218, allocations: 0 / 393.5 MB, free: 29.09 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003693/0.2222, allocations: 0.5328 MB / 394 MB, free: 28.51 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007326/0.2229, allocations: 183.2 kB / 394.2 MB, free: 28.33 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001753/0.2247, allocations: 1.743 MB / 396 MB, free: 26.55 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003917/0.2251, allocations: 0.9678 MB / 396.9 MB, free: 25.55 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002576/0.2253, allocations: 165.1 kB / 397.1 MB, free: 25.39 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001295/0.2255, allocations: 71.3 kB / 397.2 MB, free: 25.32 MB / 298.7 MB Notification: Performance of SimCode: time 7.11e-07/0.2255, allocations: 0 / 397.2 MB, free: 25.32 MB / 298.7 MB Notification: Performance of Templates: time 0.008194/0.2337, allocations: 7.614 MB / 404.8 MB, free: 17.7 MB / 298.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches