Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000917/0.0009172, allocations: 173.7 kB / 16.72 MB, free: 5.086 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.328/1.328, allocations: 205.4 MB / 222.9 MB, free: 9.023 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.000749/0.000749, allocations: 86.3 kB / 271.2 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003119/0.000312, allocations: 12 kB / 327.6 MB, free: 15.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2324/0.2327, allocations: 47.57 MB / 375.2 MB, free: 45.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002071/0.2348, allocations: 1.748 MB / 376.9 MB, free: 44.06 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002054/0.2369, allocations: 1.005 MB / 377.9 MB, free: 43.3 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001889/0.2371, allocations: 6.281 kB / 377.9 MB, free: 43.3 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001722/0.2373, allocations: 26 kB / 378 MB, free: 43.28 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001553/0.2375, allocations: 35.42 kB / 378 MB, free: 43.25 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004019/0.2379, allocations: 88.5 kB / 378.1 MB, free: 43.18 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004244/0.2383, allocations: 319.9 kB / 378.4 MB, free: 42.98 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002638/0.2386, allocations: 98.83 kB / 378.5 MB, free: 42.94 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00103/0.2396, allocations: 0.7805 MB / 379.3 MB, free: 42.62 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002895/0.2399, allocations: 184.2 kB / 379.5 MB, free: 42.55 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.535e-05/0.24, allocations: 8.719 kB / 379.5 MB, free: 42.55 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.439e-05/0.2401, allocations: 12.16 kB / 379.5 MB, free: 42.55 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001458/0.2403, allocations: 140.7 kB / 379.6 MB, free: 42.48 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002341/0.2405, allocations: 269.5 kB / 379.9 MB, free: 42.27 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005669/0.2411, allocations: 0.8014 MB / 380.7 MB, free: 41.65 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.2411, allocations: 0 / 380.7 MB, free: 41.65 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.865e-06/0.2411, allocations: 1.562 kB / 380.7 MB, free: 41.65 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.835e-06/0.2411, allocations: 3.938 kB / 380.7 MB, free: 41.65 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.0008598/0.242, allocations: 0.9576 MB / 381.6 MB, free: 40.76 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/0.242, allocations: 10.41 kB / 381.7 MB, free: 40.76 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.994e-05/0.2421, allocations: 59.11 kB / 381.7 MB, free: 40.7 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001218/0.2422, allocations: 80.72 kB / 381.8 MB, free: 40.66 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003879/0.2426, allocations: 428.4 kB / 382.2 MB, free: 40.29 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.645e-05/0.2427, allocations: 19.16 kB / 382.2 MB, free: 40.28 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.504e-05/0.2427, allocations: 18.69 kB / 382.2 MB, free: 40.27 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005886/0.2433, allocations: 304.1 kB / 382.5 MB, free: 40.09 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/0.2434, allocations: 0 / 382.5 MB, free: 40.09 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.424e-05/0.2434, allocations: 13.3 kB / 382.6 MB, free: 40.09 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.625e-06/0.2434, allocations: 3.594 kB / 382.6 MB, free: 40.09 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004713/0.2439, allocations: 205.6 kB / 382.8 MB, free: 39.99 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001107/0.245, allocations: 0.8909 MB / 383.7 MB, free: 39.28 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004185/0.2454, allocations: 219 kB / 383.9 MB, free: 39.16 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002634/0.2457, allocations: 161.2 kB / 384 MB, free: 39.07 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.772e-05/0.2458, allocations: 1.312 kB / 384 MB, free: 39.07 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000516/0.2463, allocations: 380.8 kB / 384.4 MB, free: 38.77 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.493e-06/0.2463, allocations: 0 / 384.4 MB, free: 38.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.001299/0.2476, allocations: 0.7427 MB / 385.1 MB, free: 38.35 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.527e-05/0.2477, allocations: 171.8 kB / 385.3 MB, free: 38.15 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001019/0.2487, allocations: 1.01 MB / 386.3 MB, free: 37.25 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.728e-05/0.2487, allocations: 33.7 kB / 386.3 MB, free: 37.21 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.73e-05/0.2488, allocations: 145.9 kB / 386.5 MB, free: 37.06 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.547e-05/0.2489, allocations: 59.2 kB / 386.6 MB, free: 37 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.936e-05/0.2489, allocations: 8 kB / 386.6 MB, free: 37 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.992e-05/0.249, allocations: 342.8 kB / 386.9 MB, free: 36.65 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002194/0.2492, allocations: 124.4 kB / 387 MB, free: 36.53 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002308/0.2494, allocations: 164.2 kB / 387.2 MB, free: 36.36 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004282/0.2499, allocations: 471.7 kB / 387.6 MB, free: 35.83 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.2499, allocations: 0 / 387.6 MB, free: 35.83 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007292/0.2506, allocations: 0.5782 MB / 388.2 MB, free: 35.22 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.114e-05/0.2507, allocations: 134.8 kB / 388.3 MB, free: 35.07 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.2507, allocations: 8.062 kB / 388.4 MB, free: 35.06 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.427e-05/0.2507, allocations: 4 kB / 388.4 MB, free: 35.05 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.949e-05/0.2508, allocations: 12.08 kB / 388.4 MB, free: 35.04 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.887e-06/0.2508, allocations: 11.88 kB / 388.4 MB, free: 35.03 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002719/0.2511, allocations: 43.81 kB / 388.4 MB, free: 34.99 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.057e-05/0.2512, allocations: 116.7 kB / 388.5 MB, free: 34.88 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,a.y,b.y,Adder.AND.G1.auxiliary_n,Adder.XOR.G1.auxiliary_n,$whenCondition1,$whenCondition2,$PRE.Adder.XOR.G1.auxiliary_n,$PRE.Adder.XOR.G2.x,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,$whenCondition3,$whenCondition4,$PRE.Adder.AND.G1.auxiliary_n,$PRE.Adder.AND.G2.x,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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004341/0.2516, allocations: 0.5304 MB / 389.1 MB, free: 34.31 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.007e-05/0.2517, allocations: 79.14 kB / 389.1 MB, free: 34.23 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001576/0.2519, allocations: 130.4 kB / 389.3 MB, free: 34.09 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.387e-06/0.2519, allocations: 0 / 389.3 MB, free: 34.09 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.2519, allocations: 3.938 kB / 389.3 MB, free: 34.09 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.2519, allocations: 0 / 389.3 MB, free: 34.09 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005828/0.2525, allocations: 0.6257 MB / 389.9 MB, free: 33.41 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.2525, allocations: 0 / 389.9 MB, free: 33.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.986e-05/0.2526, allocations: 12.03 kB / 389.9 MB, free: 33.4 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.2526, allocations: 11.98 kB / 389.9 MB, free: 33.39 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.574e-05/0.2526, allocations: 23.98 kB / 389.9 MB, free: 33.37 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.2526, allocations: 4 kB / 390 MB, free: 33.36 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.2526, allocations: 0 / 390 MB, free: 33.36 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008437/0.2535, allocations: 0.7062 MB / 390.7 MB, free: 32.61 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004934/0.254, allocations: 0.4957 MB / 391.2 MB, free: 32.1 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.063e-05/0.2541, allocations: 20 kB / 391.2 MB, free: 32.08 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001946/0.2543, allocations: 31.98 kB / 391.2 MB, free: 32.05 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001519/0.2544, allocations: 51.92 kB / 391.3 MB, free: 32 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.714e-05/0.2545, allocations: 119.9 kB / 391.4 MB, free: 31.88 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0007335/0.2553, allocations: 0.7289 MB / 392.1 MB, free: 31.15 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2553, allocations: 0 / 392.1 MB, free: 31.15 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003158/0.2556, allocations: 83.91 kB / 392.2 MB, free: 31.07 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001066/0.2567, allocations: 1.285 MB / 393.5 MB, free: 29.73 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006857/0.2574, allocations: 0.6459 MB / 394.1 MB, free: 29.04 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.2574, allocations: 4.125 kB / 394.1 MB, free: 29.03 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003922/0.2578, allocations: 0.5366 MB / 394.7 MB, free: 28.45 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007425/0.2585, allocations: 167.6 kB / 394.8 MB, free: 28.29 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003952/0.2625, allocations: 3.197 MB / 398 MB, free: 25.01 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004092/0.2629, allocations: 0.96 MB / 399 MB, free: 24.02 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002448/0.2632, allocations: 151.2 kB / 399.1 MB, free: 23.88 MB / 298.7 MB Notification: Performance of SimCode: time 7.21e-07/0.2632, allocations: 0 / 399.1 MB, free: 23.88 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.32/3.583, allocations: 4.655 MB / 403.8 MB, free: 19.21 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_HalfAdder_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_HalfAdder.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches