Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001253/0.001253, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001848/0.001848, allocations: 201.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 227.4 MB / 247 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001775/0.001775, allocations: 59.89 kB / 358.3 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2666/0.2684, allocations: 50.55 MB / 408.8 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003319/0.2718, allocations: 2.129 MB / 410.9 MB, free: 15.39 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002216/0.274, allocations: 1.045 MB / 412 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.446e-05/0.2741, allocations: 3.938 kB / 412 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001919/0.2743, allocations: 35.66 kB / 412 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001172/0.2745, allocations: 47.58 kB / 412.1 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003926/0.2749, allocations: 123.8 kB / 412.2 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004813/0.2754, allocations: 419 kB / 412.6 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002364/0.2756, allocations: 107.1 kB / 412.7 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009537/0.2766, allocations: 0.9397 MB / 413.7 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002633/0.2768, allocations: 203.2 kB / 413.8 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.909e-05/0.2769, allocations: 32 kB / 413.9 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.35e-05/0.277, allocations: 36 kB / 413.9 MB, free: 12.4 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001824/0.2772, allocations: 163.3 kB / 414.1 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000292/0.2775, allocations: 290 kB / 414.4 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009874/0.2785, allocations: 0.9718 MB / 415.3 MB, free: 10.98 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.2785, allocations: 4 kB / 415.3 MB, free: 10.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2785, allocations: 0 / 415.3 MB, free: 10.98 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.618e-06/0.2785, allocations: 0 / 415.3 MB, free: 10.98 MB / 334.1 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.001284/0.2798, allocations: 1.149 MB / 416.5 MB, free: 9.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.2799, allocations: 8.031 kB / 416.5 MB, free: 9.742 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.61e-05/0.28, allocations: 58.73 kB / 416.5 MB, free: 9.676 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001211/0.2801, allocations: 84.42 kB / 416.6 MB, free: 9.594 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004922/0.2806, allocations: 432.8 kB / 417.1 MB, free: 9.129 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.011e-05/0.2806, allocations: 24.36 kB / 417.1 MB, free: 9.105 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.383e-05/0.2807, allocations: 16.38 kB / 417.1 MB, free: 9.09 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006258/0.2813, allocations: 305.3 kB / 417.4 MB, free: 8.785 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.2814, allocations: 0 / 417.4 MB, free: 8.785 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.378e-05/0.2814, allocations: 15.98 kB / 417.4 MB, free: 8.77 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.2814, allocations: 4 kB / 417.4 MB, free: 8.766 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004719/0.2819, allocations: 207.9 kB / 417.6 MB, free: 8.562 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001283/0.2832, allocations: 0.8825 MB / 418.5 MB, free: 7.629 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004619/0.2837, allocations: 214.5 kB / 418.7 MB, free: 7.41 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002981/0.284, allocations: 160.7 kB / 418.9 MB, free: 7.25 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.308e-05/0.284, allocations: 8 kB / 418.9 MB, free: 7.242 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006139/0.2846, allocations: 390 kB / 419.3 MB, free: 6.824 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.513e-06/0.2846, allocations: 0 / 419.3 MB, free: 6.824 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001376/0.286, allocations: 0.7408 MB / 420 MB, free: 6.055 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001198/0.2862, allocations: 178.1 kB / 420.2 MB, free: 5.844 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001284/0.2874, allocations: 1.008 MB / 421.2 MB, free: 4.824 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.519e-05/0.2875, allocations: 29.7 kB / 421.2 MB, free: 4.789 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001356/0.2876, allocations: 165.9 kB / 421.4 MB, free: 4.621 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.583e-05/0.2877, allocations: 55.59 kB / 421.4 MB, free: 4.566 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002147/0.2879, allocations: 161.3 kB / 421.6 MB, free: 4.402 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.2881, allocations: 342.8 kB / 421.9 MB, free: 4.059 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002764/0.2884, allocations: 120 kB / 422 MB, free: 3.941 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000305/0.2887, allocations: 172.2 kB / 422.2 MB, free: 3.758 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006161/0.2893, allocations: 481.7 kB / 422.7 MB, free: 3.223 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.2893, allocations: 0 / 422.7 MB, free: 3.223 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009872/0.2903, allocations: 0.5743 MB / 423.2 MB, free: 2.617 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001061/0.2905, allocations: 138.8 kB / 423.4 MB, free: 2.457 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.2905, allocations: 3.938 kB / 423.4 MB, free: 2.453 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.59e-05/0.2905, allocations: 4 kB / 423.4 MB, free: 2.449 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.379e-05/0.2906, allocations: 20.05 kB / 423.4 MB, free: 2.43 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.641e-06/0.2906, allocations: 0 / 423.4 MB, free: 2.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002009/0.2908, allocations: 23.88 kB / 423.4 MB, free: 2.406 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001239/0.2909, allocations: 115.9 kB / 423.5 MB, free: 2.293 MB / 334.1 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.0005998/0.2915, allocations: 0.5375 MB / 424.1 MB, free: 1.723 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001067/0.2916, allocations: 87.55 kB / 424.2 MB, free: 1.637 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001949/0.2919, allocations: 130.4 kB / 424.3 MB, free: 1.508 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.985e-06/0.2919, allocations: 0 / 424.3 MB, free: 1.508 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.2919, allocations: 0 / 424.3 MB, free: 1.508 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.317e-06/0.2919, allocations: 0 / 424.3 MB, free: 1.508 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007231/0.2926, allocations: 0.6219 MB / 424.9 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.2926, allocations: 0 / 424.9 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.357e-05/0.2927, allocations: 11.98 kB / 424.9 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.441e-06/0.2927, allocations: 4 kB / 424.9 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.457e-05/0.2927, allocations: 23.98 kB / 425 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.39e-06/0.2927, allocations: 8 kB / 425 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.2928, allocations: 3.938 kB / 425 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001137/0.2939, allocations: 0.7061 MB / 425.7 MB, free: 36 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000684/0.2946, allocations: 0.5 MB / 426.2 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000103/0.2947, allocations: 24 kB / 426.2 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001638/0.2949, allocations: 16.17 kB / 426.2 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001645/0.295, allocations: 51.95 kB / 426.3 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001176/0.2952, allocations: 115.9 kB / 426.4 MB, free: 15.31 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009755/0.2962, allocations: 0.729 MB / 427.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.2962, allocations: 0 / 427.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000353/0.2965, allocations: 88 kB / 427.2 MB, free: 14.5 MB / 350.1 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.001503/0.298, allocations: 1.285 MB / 428.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009298/0.299, allocations: 0.6498 MB / 429.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.299, allocations: 4 kB / 429.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005764/0.2996, allocations: 0.5249 MB / 429.7 MB, free: 11.89 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008384/0.3004, allocations: 202.9 kB / 429.9 MB, free: 11.7 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006224/0.3067, allocations: 4.539 MB / 434.4 MB, free: 7.023 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007144/0.3074, allocations: 0.9636 MB / 435.4 MB, free: 6.035 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003455/0.3077, allocations: 169.2 kB / 435.5 MB, free: 5.871 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002375/0.308, allocations: 131.3 kB / 435.6 MB, free: 5.742 MB / 350.1 MB Notification: Performance of SimCode: time 8.21e-07/0.308, allocations: 0 / 435.6 MB, free: 5.742 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03294/0.3409, allocations: 10.25 MB / 445.9 MB, free: 11.57 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.213/8.554, allocations: 11.25 kB / 445.9 MB, free: 11.56 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_HalfAdder_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_HalfAdder.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches