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.001564/0.001564, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002073/0.002073, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.356/1.356, allocations: 227.4 MB / 246.8 MB, free: 10.65 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002183/0.002183, allocations: 63.77 kB / 307 MB, free: 0.5547 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.135/0.1373, allocations: 50.53 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.00635/0.1437, allocations: 2.116 MB / 359.7 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003993/0.1477, allocations: 1.052 MB / 360.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002088/0.148, allocations: 7.938 kB / 360.8 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002548/0.1483, allocations: 39.66 kB / 360.8 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002529/0.1486, allocations: 51.52 kB / 360.8 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000553/0.1491, allocations: 119.8 kB / 361 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008152/0.15, allocations: 415.1 kB / 361.4 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003455/0.1503, allocations: 111 kB / 361.5 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001471/0.1518, allocations: 0.9358 MB / 362.4 MB, free: 9.168 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004064/0.1523, allocations: 195.2 kB / 362.6 MB, free: 8.977 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00015/0.1524, allocations: 32 kB / 362.6 MB, free: 8.945 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001338/0.1526, allocations: 36 kB / 362.7 MB, free: 8.91 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002473/0.1528, allocations: 163.4 kB / 362.8 MB, free: 8.75 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004866/0.1533, allocations: 290.1 kB / 363.1 MB, free: 8.465 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00142/0.1548, allocations: 0.9619 MB / 364.1 MB, free: 7.5 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.1548, allocations: 0 / 364.1 MB, free: 7.5 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1548, allocations: 4 kB / 364.1 MB, free: 7.496 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.066e-05/0.1549, allocations: 0 / 364.1 MB, free: 7.496 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.002222/0.1571, allocations: 1.118 MB / 365.2 MB, free: 6.301 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.376e-05/0.1572, allocations: 8.031 kB / 365.2 MB, free: 6.293 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001162/0.1573, allocations: 50.73 kB / 365.3 MB, free: 6.234 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002352/0.1575, allocations: 80 kB / 365.3 MB, free: 6.156 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007656/0.1583, allocations: 436 kB / 365.8 MB, free: 5.691 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.755e-05/0.1584, allocations: 16.38 kB / 365.8 MB, free: 5.676 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.453e-05/0.1585, allocations: 24.31 kB / 365.8 MB, free: 5.652 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009513/0.1595, allocations: 309.3 kB / 366.1 MB, free: 5.344 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.737e-05/0.1595, allocations: 3.938 kB / 366.1 MB, free: 5.34 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.409e-05/0.1596, allocations: 8 kB / 366.1 MB, free: 5.332 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.427e-06/0.1596, allocations: 4 kB / 366.1 MB, free: 5.328 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007627/0.1604, allocations: 207.9 kB / 366.3 MB, free: 5.125 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002131/0.1625, allocations: 0.894 MB / 367.2 MB, free: 4.18 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007819/0.1633, allocations: 218.5 kB / 367.4 MB, free: 3.957 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004949/0.1638, allocations: 156.8 kB / 367.6 MB, free: 3.801 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.823e-05/0.1639, allocations: 0 / 367.6 MB, free: 3.801 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008829/0.1648, allocations: 393.8 kB / 368 MB, free: 3.379 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 2.254e-06/0.1648, allocations: 0 / 368 MB, free: 3.379 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.002211/0.167, allocations: 0.7336 MB / 368.7 MB, free: 2.613 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001244/0.1672, allocations: 170.2 kB / 368.9 MB, free: 2.41 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002118/0.1693, allocations: 1.008 MB / 369.9 MB, free: 1.387 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.746e-05/0.1694, allocations: 33.7 kB / 369.9 MB, free: 1.348 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001493/0.1696, allocations: 157.8 kB / 370.1 MB, free: 1.191 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000129/0.1697, allocations: 59.25 kB / 370.1 MB, free: 1.133 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003326/0.17, allocations: 165.1 kB / 370.3 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001755/0.1702, allocations: 342.7 kB / 370.6 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000454/0.1707, allocations: 120 kB / 370.7 MB, free: 0.5039 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004836/0.1712, allocations: 156.2 kB / 370.9 MB, free: 344 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1632/0.3344, allocations: 480.6 kB / 371.3 MB, free: 19.98 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.3345, allocations: 0.6875 kB / 371.3 MB, free: 19.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001011/0.3355, allocations: 0.5795 MB / 371.9 MB, free: 19.83 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.073e-05/0.3356, allocations: 140.9 kB / 372.1 MB, free: 19.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.3356, allocations: 1.031 kB / 372.1 MB, free: 19.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.781e-05/0.3356, allocations: 2.5 kB / 372.1 MB, free: 19.7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.735e-05/0.3357, allocations: 14.73 kB / 372.1 MB, free: 19.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.723e-06/0.3357, allocations: 2.438 kB / 372.1 MB, free: 19.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002319/0.336, allocations: 16.22 kB / 372.1 MB, free: 19.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001314/0.3361, allocations: 114.6 kB / 372.2 MB, free: 19.7 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.0006752/0.3368, allocations: 0.5357 MB / 372.7 MB, free: 19.41 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001246/0.3369, allocations: 79.05 kB / 372.8 MB, free: 19.41 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002108/0.3371, allocations: 132.1 kB / 373 MB, free: 19.34 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/0.3372, allocations: 2.031 kB / 373 MB, free: 19.34 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.3372, allocations: 4.75 kB / 373 MB, free: 19.34 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.3372, allocations: 0.6562 kB / 373 MB, free: 19.34 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000697/0.3379, allocations: 0.6317 MB / 373.6 MB, free: 19.08 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.3379, allocations: 0.875 kB / 373.6 MB, free: 19.08 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.552e-05/0.3379, allocations: 13.84 kB / 373.6 MB, free: 19.08 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.338, allocations: 1.875 kB / 373.6 MB, free: 19.08 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.966e-05/0.338, allocations: 26.61 kB / 373.6 MB, free: 19.08 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.338, allocations: 2.062 kB / 373.6 MB, free: 19.08 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.338, allocations: 0 / 373.6 MB, free: 19.08 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001078/0.3391, allocations: 0.705 MB / 374.3 MB, free: 18.85 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006206/0.3397, allocations: 0.4942 MB / 374.8 MB, free: 18.52 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001034/0.3398, allocations: 27.59 kB / 374.9 MB, free: 18.51 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001753/0.34, allocations: 15.66 kB / 374.9 MB, free: 18.51 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001578/0.3402, allocations: 50.56 kB / 374.9 MB, free: 18.49 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001073/0.3403, allocations: 118.9 kB / 375 MB, free: 18.48 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008236/0.3411, allocations: 0.7292 MB / 375.8 MB, free: 18.11 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3411, allocations: 0 / 375.8 MB, free: 18.11 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000358/0.3415, allocations: 89.17 kB / 375.9 MB, free: 18.11 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.001238/0.3428, allocations: 1.289 MB / 377.2 MB, free: 17.2 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008552/0.3436, allocations: 0.6565 MB / 377.8 MB, free: 16.75 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3436, allocations: 0 / 377.8 MB, free: 16.75 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004596/0.3441, allocations: 0.528 MB / 378.3 MB, free: 16.34 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008237/0.3449, allocations: 208.7 kB / 378.5 MB, free: 16.28 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005522/0.3505, allocations: 4.514 MB / 383.1 MB, free: 13.54 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005165/0.351, allocations: 0.97 MB / 384 MB, free: 12.76 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003132/0.3513, allocations: 163.4 kB / 384.2 MB, free: 12.66 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002004/0.3515, allocations: 132 kB / 384.3 MB, free: 12.56 MB / 302.1 MB Notification: Performance of SimCode: time 7.71e-07/0.3516, allocations: 1.219 kB / 384.3 MB, free: 12.56 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0283/0.3799, allocations: 10.19 MB / 394.5 MB, free: 8.996 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.785/8.165, allocations: 9.812 kB / 394.5 MB, free: 8.992 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