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.001471/0.001472, allocations: 117.6 kB / 17.79 MB, free: 5.25 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001723/0.001723, allocations: 200.7 kB / 18.74 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.337/1.337, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001205/0.001205, allocations: 59.89 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2312/0.2324, allocations: 50.53 MB / 408.7 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003211/0.2356, allocations: 2.133 MB / 410.9 MB, free: 15.39 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00217/0.2378, allocations: 1.041 MB / 411.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001453/0.238, allocations: 4 kB / 411.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001835/0.2382, allocations: 39.59 kB / 412 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001441/0.2384, allocations: 51.58 kB / 412 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004496/0.2388, allocations: 123.8 kB / 412.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005439/0.2394, allocations: 419 kB / 412.5 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002526/0.2397, allocations: 105.9 kB / 412.6 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009775/0.2406, allocations: 0.9669 MB / 413.6 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002804/0.2409, allocations: 199.2 kB / 413.8 MB, free: 12.44 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.801e-05/0.241, allocations: 36 kB / 413.8 MB, free: 12.4 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.276e-05/0.2411, allocations: 32 kB / 413.9 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001745/0.2413, allocations: 163.3 kB / 414 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002722/0.2416, allocations: 298 kB / 414.3 MB, free: 11.92 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000874/0.2424, allocations: 0.9718 MB / 415.3 MB, free: 10.95 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.399e-06/0.2424, allocations: 0 / 415.3 MB, free: 10.95 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.2425, allocations: 0 / 415.3 MB, free: 10.95 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.408e-05/0.2425, allocations: 0 / 415.3 MB, free: 10.95 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.001249/0.2437, allocations: 1.149 MB / 416.4 MB, free: 9.719 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/0.2438, allocations: 8.031 kB / 416.4 MB, free: 9.711 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.113e-05/0.2439, allocations: 54.73 kB / 416.5 MB, free: 9.648 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000116/0.244, allocations: 84.42 kB / 416.6 MB, free: 9.566 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004761/0.2445, allocations: 432.8 kB / 417 MB, free: 9.102 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.344e-05/0.2445, allocations: 24.36 kB / 417 MB, free: 9.078 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.468e-05/0.2446, allocations: 20.38 kB / 417.1 MB, free: 9.059 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006102/0.2452, allocations: 305.3 kB / 417.4 MB, free: 8.754 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/0.2452, allocations: 0 / 417.4 MB, free: 8.754 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.8e-05/0.2453, allocations: 15.92 kB / 417.4 MB, free: 8.738 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.249e-05/0.2453, allocations: 4 kB / 417.4 MB, free: 8.734 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004574/0.2457, allocations: 207.9 kB / 417.6 MB, free: 8.531 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001314/0.2471, allocations: 0.8864 MB / 418.5 MB, free: 7.594 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004491/0.2475, allocations: 214.5 kB / 418.7 MB, free: 7.375 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002852/0.2478, allocations: 160.7 kB / 418.8 MB, free: 7.215 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.146e-05/0.2479, allocations: 3.938 kB / 418.8 MB, free: 7.211 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005612/0.2484, allocations: 389.6 kB / 419.2 MB, free: 6.797 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.593e-06/0.2484, allocations: 8 kB / 419.2 MB, free: 6.789 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001295/0.2497, allocations: 0.733 MB / 420 MB, free: 6.027 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.577e-05/0.2498, allocations: 178.2 kB / 420.1 MB, free: 5.816 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001197/0.2511, allocations: 0.9961 MB / 421.1 MB, free: 4.809 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.051e-05/0.2511, allocations: 45.62 kB / 421.2 MB, free: 4.758 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001209/0.2512, allocations: 161.9 kB / 421.3 MB, free: 4.594 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.485e-05/0.2513, allocations: 55.59 kB / 421.4 MB, free: 4.539 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002111/0.2515, allocations: 165.3 kB / 421.5 MB, free: 4.371 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.2517, allocations: 346.8 kB / 421.9 MB, free: 4.023 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002699/0.252, allocations: 116 kB / 422 MB, free: 3.91 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002809/0.2522, allocations: 168.2 kB / 422.2 MB, free: 3.73 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005846/0.2528, allocations: 477.7 kB / 422.6 MB, free: 3.199 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/0.2529, allocations: 4 kB / 422.6 MB, free: 3.195 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009124/0.2538, allocations: 0.5743 MB / 423.2 MB, free: 2.59 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.146e-05/0.2539, allocations: 138.8 kB / 423.3 MB, free: 2.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.505e-06/0.2539, allocations: 0 / 423.3 MB, free: 2.43 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.565e-05/0.2539, allocations: 0 / 423.3 MB, free: 2.43 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.71e-05/0.254, allocations: 15.94 kB / 423.4 MB, free: 2.414 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.077e-06/0.254, allocations: 7.984 kB / 423.4 MB, free: 2.406 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002147/0.2542, allocations: 19.89 kB / 423.4 MB, free: 2.387 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001118/0.2544, allocations: 119.9 kB / 423.5 MB, free: 2.27 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.0005478/0.2549, allocations: 0.5414 MB / 424 MB, free: 1.695 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.857e-05/0.255, allocations: 83.56 kB / 424.1 MB, free: 1.613 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001771/0.2552, allocations: 130.5 kB / 424.2 MB, free: 1.484 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.2552, allocations: 0 / 424.2 MB, free: 1.484 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.2552, allocations: 8 kB / 424.3 MB, free: 1.477 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.2552, allocations: 4 kB / 424.3 MB, free: 1.473 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006127/0.2558, allocations: 0.6219 MB / 424.9 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.2559, allocations: 0 / 424.9 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.275e-05/0.2559, allocations: 11.98 kB / 424.9 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.2559, allocations: 0 / 424.9 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.825e-05/0.256, allocations: 27.98 kB / 424.9 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.256, allocations: 0 / 424.9 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.256, allocations: 0 / 424.9 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009986/0.257, allocations: 0.7099 MB / 425.6 MB, free: 8 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006465/0.2576, allocations: 0.5041 MB / 426.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001015/0.2578, allocations: 20 kB / 426.2 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001786/0.2579, allocations: 27.91 kB / 426.2 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001489/0.2581, allocations: 43.95 kB / 426.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.885e-05/0.2582, allocations: 115.9 kB / 426.3 MB, free: 15.28 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008462/0.2591, allocations: 0.729 MB / 427.1 MB, free: 14.56 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2591, allocations: 0 / 427.1 MB, free: 14.56 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003314/0.2594, allocations: 84 kB / 427.1 MB, free: 14.48 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.001287/0.2607, allocations: 1.289 MB / 428.4 MB, free: 13.13 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008445/0.2616, allocations: 0.6537 MB / 429.1 MB, free: 12.43 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.2616, allocations: 0 / 429.1 MB, free: 12.43 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005067/0.2621, allocations: 0.5288 MB / 429.6 MB, free: 11.85 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008079/0.2629, allocations: 194.6 kB / 429.8 MB, free: 11.68 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005597/0.2685, allocations: 4.535 MB / 434.3 MB, free: 6.996 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006406/0.2692, allocations: 0.9675 MB / 435.3 MB, free: 6.004 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003202/0.2695, allocations: 169.2 kB / 435.5 MB, free: 5.84 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002149/0.2697, allocations: 127.3 kB / 435.6 MB, free: 5.715 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2697, allocations: 0 / 435.6 MB, free: 5.715 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02527/0.295, allocations: 10.26 MB / 445.9 MB, free: 11.53 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.842/8.137, allocations: 11.62 kB / 445.9 MB, free: 11.52 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 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.csv","/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