Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001257/0.001257, allocations: 113.2 kB / 17.73 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001227/0.001227, allocations: 188.2 kB / 18.66 MB, free: 4.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.361/1.361, allocations: 205.1 MB / 224.5 MB, free: 12.21 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001418/0.001418, allocations: 56.39 kB / 328 MB, free: 3.812 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08394/0.08537, allocations: 46.62 MB / 374.6 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003402/0.08881, allocations: 2.115 MB / 376.8 MB, free: 2.961 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002144/0.09098, allocations: 1.061 MB / 377.8 MB, free: 1.891 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001503/0.09115, allocations: 4 kB / 377.8 MB, free: 1.887 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001761/0.09138, allocations: 39.59 kB / 377.9 MB, free: 1.848 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001628/0.09155, allocations: 55.56 kB / 377.9 MB, free: 1.793 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004329/0.09199, allocations: 131.8 kB / 378 MB, free: 1.664 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004862/0.09249, allocations: 403.1 kB / 378.4 MB, free: 1.27 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002048/0.09271, allocations: 115 kB / 378.6 MB, free: 1.156 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009056/0.09362, allocations: 0.963 MB / 379.5 MB, free: 196 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002616/0.09389, allocations: 195.2 kB / 379.7 MB, free: 0 / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.1586/0.2525, allocations: 33.64 kB / 379.7 MB, free: 10.1 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.766e-05/0.2527, allocations: 34.81 kB / 379.8 MB, free: 10.1 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001899/0.2529, allocations: 159.7 kB / 379.9 MB, free: 10.1 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002666/0.2531, allocations: 289.3 kB / 380.2 MB, free: 9.992 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000883/0.254, allocations: 0.979 MB / 381.2 MB, free: 9.871 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.254, allocations: 0 / 381.2 MB, free: 9.871 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.2541, allocations: 1.375 kB / 381.2 MB, free: 9.871 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.817e-06/0.2541, allocations: 0 / 381.2 MB, free: 9.871 MB / 318.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.001017/0.2551, allocations: 1.146 MB / 382.3 MB, free: 9.047 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.637e-05/0.2551, allocations: 14.36 kB / 382.4 MB, free: 9.043 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.152e-05/0.2552, allocations: 51.12 kB / 382.4 MB, free: 9.004 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001044/0.2553, allocations: 83.92 kB / 382.5 MB, free: 8.961 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004521/0.2558, allocations: 434.4 kB / 382.9 MB, free: 8.645 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.798e-05/0.2558, allocations: 18.16 kB / 382.9 MB, free: 8.645 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.799e-05/0.2559, allocations: 18.03 kB / 382.9 MB, free: 8.645 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006703/0.2566, allocations: 311.5 kB / 383.2 MB, free: 8.605 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.2566, allocations: 0 / 383.2 MB, free: 8.605 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.946e-05/0.2566, allocations: 11.45 kB / 383.3 MB, free: 8.605 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.596e-06/0.2567, allocations: 3.312 kB / 383.3 MB, free: 8.605 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004739/0.2571, allocations: 209.7 kB / 383.5 MB, free: 8.602 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001219/0.2584, allocations: 0.887 MB / 384.4 MB, free: 8.266 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004154/0.2588, allocations: 221.6 kB / 384.6 MB, free: 8.242 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002611/0.2591, allocations: 156.2 kB / 384.7 MB, free: 8.234 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.356e-05/0.2591, allocations: 4.031 kB / 384.7 MB, free: 8.234 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005306/0.2596, allocations: 383.7 kB / 385.1 MB, free: 8.059 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.613e-06/0.2596, allocations: 1.188 kB / 385.1 MB, free: 8.059 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001279/0.2609, allocations: 0.736 MB / 385.8 MB, free: 7.855 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.145e-05/0.261, allocations: 180.4 kB / 386 MB, free: 7.66 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001146/0.2622, allocations: 0.9962 MB / 387 MB, free: 7.16 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.122e-05/0.2622, allocations: 38.44 kB / 387 MB, free: 7.125 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.185e-05/0.2623, allocations: 156.3 kB / 387.2 MB, free: 6.996 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.267e-05/0.2624, allocations: 60.84 kB / 387.3 MB, free: 6.957 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001894/0.2626, allocations: 169.4 kB / 387.4 MB, free: 6.867 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.598e-05/0.2626, allocations: 346.1 kB / 387.8 MB, free: 6.535 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002506/0.2629, allocations: 122.9 kB / 387.9 MB, free: 6.492 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002673/0.2632, allocations: 162.3 kB / 388 MB, free: 6.406 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004891/0.2636, allocations: 474.3 kB / 388.5 MB, free: 6.027 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.2637, allocations: 5.219 kB / 388.5 MB, free: 6.027 MB / 318.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008821/0.2645, allocations: 0.5896 MB / 389.1 MB, free: 5.727 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.037e-05/0.2646, allocations: 133.3 kB / 389.2 MB, free: 5.594 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.742e-06/0.2646, allocations: 1.844 kB / 389.2 MB, free: 5.594 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.582e-05/0.2647, allocations: 1.25 kB / 389.2 MB, free: 5.594 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.354e-05/0.2647, allocations: 13.59 kB / 389.2 MB, free: 5.594 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.2648, allocations: 5.375 kB / 389.3 MB, free: 5.594 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002186/0.265, allocations: 24.52 kB / 389.3 MB, free: 5.586 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001176/0.2651, allocations: 114.9 kB / 389.4 MB, free: 5.578 MB / 318.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.0005123/0.2656, allocations: 0.54 MB / 389.9 MB, free: 5.188 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.484e-05/0.2657, allocations: 83.08 kB / 390 MB, free: 5.145 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001904/0.2659, allocations: 131.4 kB / 390.1 MB, free: 5.062 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/0.2659, allocations: 2.312 kB / 390.1 MB, free: 5.062 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.266, allocations: 0 / 390.1 MB, free: 5.062 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.266, allocations: 0.7031 kB / 390.1 MB, free: 5.062 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006904/0.2667, allocations: 0.6308 MB / 390.8 MB, free: 4.656 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.2667, allocations: 0 / 390.8 MB, free: 4.656 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.512e-05/0.2667, allocations: 16.08 kB / 390.8 MB, free: 4.656 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.2667, allocations: 96 / 390.8 MB, free: 4.656 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.95e-05/0.2668, allocations: 30.73 kB / 390.8 MB, free: 4.648 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.395e-06/0.2668, allocations: 1.859 kB / 390.8 MB, free: 4.648 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2668, allocations: 0 / 390.8 MB, free: 4.648 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009542/0.2677, allocations: 0.702 MB / 391.5 MB, free: 4.273 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009113/0.2687, allocations: 0.4989 MB / 392 MB, free: 3.934 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001626/0.2689, allocations: 22.66 kB / 392 MB, free: 3.926 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002933/0.2692, allocations: 15.77 kB / 392.1 MB, free: 3.926 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002169/0.2694, allocations: 51.92 kB / 392.1 MB, free: 3.91 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001782/0.2696, allocations: 116.9 kB / 392.2 MB, free: 3.898 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001329/0.2709, allocations: 0.7279 MB / 392.9 MB, free: 3.543 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.2709, allocations: 0 / 392.9 MB, free: 3.543 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006179/0.2716, allocations: 94.27 kB / 393 MB, free: 3.531 MB / 318.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.001883/0.2734, allocations: 1.285 MB / 394.3 MB, free: 2.613 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001256/0.2747, allocations: 0.6599 MB / 395 MB, free: 2.16 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.2747, allocations: 1.406 kB / 395 MB, free: 2.16 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007163/0.2755, allocations: 0.5258 MB / 395.5 MB, free: 1.75 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001273/0.2768, allocations: 198.1 kB / 395.7 MB, free: 1.691 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009114/0.2859, allocations: 4.53 MB / 400.2 MB, free: 14.96 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001174/0.2871, allocations: 0.9656 MB / 401.2 MB, free: 14.17 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0007683/0.2879, allocations: 161.4 kB / 401.4 MB, free: 14.07 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003897/0.2883, allocations: 135.1 kB / 401.5 MB, free: 13.97 MB / 334.1 MB Notification: Performance of SimCode: time 1.212e-06/0.2883, allocations: 0 / 401.5 MB, free: 13.97 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03889/0.3272, allocations: 10.24 MB / 411.7 MB, free: 9.766 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.188/8.515, allocations: 23.33 kB / 411.8 MB, free: 9.742 MB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Digital_Examples_HalfAdder.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches