Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.0009427/0.0009428, allocations: 195.6 kB / 17.38 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.216/1.216, allocations: 226.5 MB / 244.7 MB, free: 8.199 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007985/0.0007985, allocations: 96.42 kB / 296.7 MB, free: 6.922 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002042/0.0002043, allocations: 4 kB / 356.8 MB, free: 10.84 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2149/0.2152, allocations: 51.29 MB / 408.1 MB, free: 27.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.001706/0.2169, allocations: 1.748 MB / 409.9 MB, free: 25.96 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001558/0.2185, allocations: 0.9982 MB / 410.9 MB, free: 24.96 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.061e-05/0.2186, allocations: 3.938 kB / 410.9 MB, free: 24.96 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001488/0.2187, allocations: 23.78 kB / 410.9 MB, free: 24.94 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 8.31e-05/0.2188, allocations: 44.27 kB / 410.9 MB, free: 24.89 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00028/0.2191, allocations: 76.56 kB / 411 MB, free: 24.82 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000238/0.2194, allocations: 320.5 kB / 411.3 MB, free: 24.51 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001674/0.2195, allocations: 105.9 kB / 411.4 MB, free: 24.41 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005603/0.2201, allocations: 0.772 MB / 412.2 MB, free: 23.64 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001338/0.2203, allocations: 187.4 kB / 412.4 MB, free: 23.45 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.185e-05/0.2203, allocations: 8 kB / 412.4 MB, free: 23.45 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.572e-05/0.2204, allocations: 12 kB / 412.4 MB, free: 23.43 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001034/0.2205, allocations: 147.5 kB / 412.6 MB, free: 23.29 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001648/0.2207, allocations: 272.1 kB / 412.8 MB, free: 23.02 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003961/0.2211, allocations: 0.7806 MB / 413.6 MB, free: 22.23 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.2211, allocations: 0 / 413.6 MB, free: 22.23 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2211, allocations: 1.812 kB / 413.6 MB, free: 22.23 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.583e-06/0.2211, allocations: 4 kB / 413.6 MB, free: 22.23 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.0007197/0.2218, allocations: 0.963 MB / 414.6 MB, free: 21.19 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/0.2219, allocations: 12.03 kB / 414.6 MB, free: 21.18 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.884e-05/0.2219, allocations: 58.72 kB / 414.6 MB, free: 21.11 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.315e-05/0.222, allocations: 80 kB / 414.7 MB, free: 21.04 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000328/0.2224, allocations: 439.9 kB / 415.1 MB, free: 20.57 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.992e-05/0.2224, allocations: 16.38 kB / 415.2 MB, free: 20.55 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.7e-05/0.2225, allocations: 20.38 kB / 415.2 MB, free: 20.53 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005013/0.223, allocations: 301.5 kB / 415.5 MB, free: 20.23 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.223, allocations: 0 / 415.5 MB, free: 20.23 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.796e-05/0.223, allocations: 12 kB / 415.5 MB, free: 20.22 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.229e-06/0.223, allocations: 0 / 415.5 MB, free: 20.22 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003565/0.2234, allocations: 207.9 kB / 415.7 MB, free: 20.02 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009628/0.2244, allocations: 0.8977 MB / 416.6 MB, free: 19.07 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000363/0.2247, allocations: 214.5 kB / 416.8 MB, free: 18.85 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002318/0.225, allocations: 160.8 kB / 417 MB, free: 18.69 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.618e-05/0.225, allocations: 4 kB / 417 MB, free: 18.68 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004317/0.2255, allocations: 382.8 kB / 417.3 MB, free: 18.27 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 2.104e-06/0.2255, allocations: 7.938 kB / 417.3 MB, free: 18.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.00109/0.2266, allocations: 0.731 MB / 418.1 MB, free: 17.5 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.827e-05/0.2266, allocations: 178.2 kB / 418.2 MB, free: 17.29 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009216/0.2276, allocations: 0.9961 MB / 419.2 MB, free: 16.28 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.671e-05/0.2276, allocations: 37.69 kB / 419.3 MB, free: 16.24 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.284e-05/0.2277, allocations: 153.8 kB / 419.4 MB, free: 16.09 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.195e-05/0.2277, allocations: 59.28 kB / 419.5 MB, free: 16.03 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.04e-05/0.2278, allocations: 8 kB / 419.5 MB, free: 16.02 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.15e-05/0.2278, allocations: 342.7 kB / 419.8 MB, free: 15.68 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002196/0.2281, allocations: 120 kB / 419.9 MB, free: 15.56 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002195/0.2283, allocations: 160.2 kB / 420.1 MB, free: 15.39 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004228/0.2287, allocations: 473.8 kB / 420.6 MB, free: 14.86 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.2287, allocations: 0 / 420.6 MB, free: 14.86 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007374/0.2295, allocations: 0.5831 MB / 421.2 MB, free: 14.25 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.031e-05/0.2295, allocations: 134.8 kB / 421.3 MB, free: 14.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.2296, allocations: 4 kB / 421.3 MB, free: 14.09 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.375e-05/0.2296, allocations: 0 / 421.3 MB, free: 14.09 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.741e-05/0.2297, allocations: 12 kB / 421.3 MB, free: 14.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.802e-06/0.2297, allocations: 0 / 421.3 MB, free: 14.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002631/0.2299, allocations: 47.88 kB / 421.3 MB, free: 14.03 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.738e-05/0.23, allocations: 115.9 kB / 421.5 MB, free: 13.91 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.0004202/0.2305, allocations: 0.5376 MB / 422 MB, free: 13.34 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.735e-05/0.2305, allocations: 79.06 kB / 422.1 MB, free: 13.27 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001543/0.2307, allocations: 130.4 kB / 422.2 MB, free: 13.13 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.2307, allocations: 4 kB / 422.2 MB, free: 13.13 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.2307, allocations: 0 / 422.2 MB, free: 13.13 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.2307, allocations: 4 kB / 422.2 MB, free: 13.12 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005125/0.2312, allocations: 0.6219 MB / 422.8 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.2313, allocations: 0 / 422.8 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.981e-05/0.2313, allocations: 19.88 kB / 422.8 MB, free: 12.43 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.2313, allocations: 0 / 422.8 MB, free: 12.43 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.228e-05/0.2314, allocations: 23.98 kB / 422.9 MB, free: 12.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.2314, allocations: 0 / 422.9 MB, free: 12.41 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.2314, allocations: 0 / 422.9 MB, free: 12.41 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008771/0.2322, allocations: 0.7056 MB / 423.6 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004996/0.2328, allocations: 0.4919 MB / 424.1 MB, free: 11.15 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.842e-05/0.2329, allocations: 24 kB / 424.1 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001984/0.2331, allocations: 27.91 kB / 424.1 MB, free: 11.1 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001591/0.2332, allocations: 55.94 kB / 424.2 MB, free: 11.04 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.639e-05/0.2333, allocations: 115.9 kB / 424.3 MB, free: 10.93 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0007437/0.2341, allocations: 0.7291 MB / 425 MB, free: 10.2 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2341, allocations: 0 / 425 MB, free: 10.2 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003038/0.2344, allocations: 95.84 kB / 425.1 MB, free: 10.11 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.001067/0.2355, allocations: 1.281 MB / 426.4 MB, free: 8.77 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006814/0.2362, allocations: 0.6576 MB / 427.1 MB, free: 8.062 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.2362, allocations: 0 / 427.1 MB, free: 8.062 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003846/0.2366, allocations: 0.5286 MB / 427.6 MB, free: 7.484 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000738/0.2373, allocations: 176.9 kB / 427.8 MB, free: 7.32 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003907/0.2412, allocations: 3.19 MB / 430.9 MB, free: 4.051 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004271/0.2417, allocations: 0.9678 MB / 431.9 MB, free: 3.059 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002611/0.2419, allocations: 147.2 kB / 432.1 MB, free: 2.914 MB / 298.7 MB Notification: Performance of SimCode: time 1.012e-06/0.2419, allocations: 0 / 432.1 MB, free: 2.914 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.05/3.292, allocations: 4.65 MB / 436.7 MB, free: 14.26 MB / 314.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Digital_Examples_HalfAdder_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Digital_Examples_HalfAdder.fmu > Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches