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.0006647/0.0006648, allocations: 95.59 kB / 17.35 MB, free: 6.023 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007708/0.0007708, allocations: 200.3 kB / 18.28 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.245/1.245, allocations: 227.7 MB / 246.8 MB, free: 11.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000199/0.000199, allocations: 11.94 kB / 307.8 MB, free: 0.7305 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07922/0.07943, allocations: 51.52 MB / 359.4 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002006/0.08147, allocations: 1.807 MB / 361.2 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001894/0.08339, allocations: 1.068 MB / 362.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001049/0.08351, allocations: 0 / 362.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001374/0.08366, allocations: 27.78 kB / 362.3 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001238/0.0838, allocations: 47.58 kB / 362.3 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003323/0.08414, allocations: 123.8 kB / 362.4 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003415/0.08449, allocations: 331.1 kB / 362.7 MB, free: 9.797 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001865/0.08468, allocations: 107 kB / 362.9 MB, free: 9.691 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007834/0.08547, allocations: 0.9045 MB / 363.8 MB, free: 8.785 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001946/0.08568, allocations: 167.2 kB / 363.9 MB, free: 8.621 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.227e-05/0.08574, allocations: 8 kB / 363.9 MB, free: 8.613 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.666e-05/0.08579, allocations: 16 kB / 363.9 MB, free: 8.598 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001295/0.08593, allocations: 143.4 kB / 364.1 MB, free: 8.457 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000217/0.08615, allocations: 283.8 kB / 364.4 MB, free: 8.172 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006544/0.08681, allocations: 0.9188 MB / 365.3 MB, free: 7.25 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.085e-06/0.08682, allocations: 0 / 365.3 MB, free: 7.25 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.08683, allocations: 0 / 365.3 MB, free: 7.25 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.202e-05/0.08685, allocations: 0 / 365.3 MB, free: 7.25 MB / 302.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.001004/0.08785, allocations: 0.9708 MB / 366.3 MB, free: 6.203 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.489e-05/0.0879, allocations: 12.03 kB / 366.3 MB, free: 6.191 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.213e-05/0.08798, allocations: 54.73 kB / 366.3 MB, free: 6.129 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001096/0.08809, allocations: 83.91 kB / 366.4 MB, free: 6.047 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003998/0.0885, allocations: 432 kB / 366.8 MB, free: 5.586 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.587e-05/0.08854, allocations: 16.38 kB / 366.8 MB, free: 5.57 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.599e-05/0.08861, allocations: 20.38 kB / 366.9 MB, free: 5.551 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000557/0.08917, allocations: 305.3 kB / 367.2 MB, free: 5.246 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.08919, allocations: 0 / 367.2 MB, free: 5.246 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.07e-05/0.08923, allocations: 12 kB / 367.2 MB, free: 5.234 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.262e-06/0.08924, allocations: 4 kB / 367.2 MB, free: 5.23 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004173/0.08967, allocations: 211.8 kB / 367.4 MB, free: 5.023 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001171/0.09085, allocations: 0.8824 MB / 368.3 MB, free: 4.09 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004372/0.0913, allocations: 218.5 kB / 368.5 MB, free: 3.867 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002665/0.09157, allocations: 156.8 kB / 368.6 MB, free: 3.711 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.944e-05/0.0916, allocations: 0 / 368.6 MB, free: 3.711 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005108/0.09212, allocations: 391 kB / 369 MB, free: 3.293 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.693e-06/0.09213, allocations: 4 kB / 369 MB, free: 3.289 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001228/0.09337, allocations: 0.737 MB / 369.7 MB, free: 2.523 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.363e-05/0.09346, allocations: 174.2 kB / 369.9 MB, free: 2.316 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001193/0.09466, allocations: 1 MB / 370.9 MB, free: 1.301 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.886e-05/0.09472, allocations: 37.7 kB / 371 MB, free: 1.258 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001012/0.09483, allocations: 153.8 kB / 371.1 MB, free: 1.105 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.878e-05/0.0949, allocations: 55.3 kB / 371.2 MB, free: 1.051 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.221e-05/0.09498, allocations: 45.78 kB / 371.2 MB, free: 1 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.09511, allocations: 342.7 kB / 371.5 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002536/0.09538, allocations: 123.9 kB / 371.7 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002627/0.09565, allocations: 168.2 kB / 371.8 MB, free: 364 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1363/0.2319, allocations: 468.6 kB / 372.3 MB, free: 19.02 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.05e-06/0.232, allocations: 3.375 kB / 372.3 MB, free: 19.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009508/0.2329, allocations: 0.5807 MB / 372.9 MB, free: 18.87 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.209e-05/0.233, allocations: 135.8 kB / 373 MB, free: 18.74 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.233, allocations: 1.281 kB / 373 MB, free: 18.74 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.557e-05/0.233, allocations: 3.031 kB / 373 MB, free: 18.74 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.826e-05/0.2331, allocations: 18.17 kB / 373 MB, free: 18.74 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.143e-06/0.2331, allocations: 2.781 kB / 373 MB, free: 18.74 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002961/0.2334, allocations: 34.89 kB / 373.1 MB, free: 18.74 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000115/0.2336, allocations: 114.1 kB / 373.2 MB, free: 18.74 MB / 302.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.0005517/0.2341, allocations: 0.5336 MB / 373.7 MB, free: 18.45 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.651e-05/0.2342, allocations: 76.89 kB / 373.8 MB, free: 18.45 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001631/0.2344, allocations: 135.7 kB / 373.9 MB, free: 18.38 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.816e-06/0.2344, allocations: 5.312 kB / 373.9 MB, free: 18.38 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.2344, allocations: 0 / 373.9 MB, free: 18.38 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.2344, allocations: 1.625 kB / 373.9 MB, free: 18.38 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006023/0.235, allocations: 0.63 MB / 374.5 MB, free: 18.12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.235, allocations: 0.9375 kB / 374.5 MB, free: 18.12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.966e-05/0.2351, allocations: 11.19 kB / 374.6 MB, free: 18.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.2351, allocations: 0 / 374.6 MB, free: 18.12 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.295e-05/0.2351, allocations: 27.56 kB / 374.6 MB, free: 18.12 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.2351, allocations: 0.75 kB / 374.6 MB, free: 18.12 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.2352, allocations: 1.094 kB / 374.6 MB, free: 18.12 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001013/0.2362, allocations: 0.7038 MB / 375.3 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005537/0.2367, allocations: 0.4928 MB / 375.8 MB, free: 17.73 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.69e-05/0.2368, allocations: 20.81 kB / 375.8 MB, free: 17.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001935/0.237, allocations: 27.98 kB / 375.8 MB, free: 17.73 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001353/0.2372, allocations: 54.78 kB / 375.9 MB, free: 17.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.969e-05/0.2373, allocations: 127.6 kB / 376 MB, free: 17.72 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.00078/0.2381, allocations: 0.7238 MB / 376.7 MB, free: 17.5 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2381, allocations: 0 / 376.7 MB, free: 17.5 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000315/0.2384, allocations: 89.17 kB / 376.8 MB, free: 17.49 MB / 302.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.001082/0.2395, allocations: 1.277 MB / 378.1 MB, free: 16.59 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007159/0.2402, allocations: 0.6601 MB / 378.8 MB, free: 16.14 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.2402, allocations: 1 kB / 378.8 MB, free: 16.14 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004117/0.2406, allocations: 0.5267 MB / 379.3 MB, free: 15.73 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007549/0.2414, allocations: 190.5 kB / 379.5 MB, free: 15.68 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004999/0.2464, allocations: 4.664 MB / 384.1 MB, free: 12.77 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000476/0.2469, allocations: 0.9717 MB / 385.1 MB, free: 11.98 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003178/0.2472, allocations: 164.7 kB / 385.3 MB, free: 11.88 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001936/0.2474, allocations: 124.3 kB / 385.4 MB, free: 11.79 MB / 302.1 MB Notification: Performance of SimCode: time 3.7e-07/0.2474, allocations: 0 / 385.4 MB, free: 11.79 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01857/0.266, allocations: 9.127 MB / 394.5 MB, free: 8.789 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001422/0.2662, allocations: 203.9 kB / 394.7 MB, free: 8.527 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.827/2.093, allocations: 0 / 394.7 MB, free: 8.527 MB / 302.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.0.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