Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_4_0_0_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.00175/0.00175, allocations: 113.4 kB / 17.07 MB, free: 5.988 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.001978/0.001978, allocations: 193.4 kB / 18 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.388/1.388, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001458/0.001458, allocations: 52.06 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2435/0.245, allocations: 49.43 MB / 400.2 MB, free: 8.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003238/0.2483, allocations: 2.108 MB / 402.3 MB, free: 6.832 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002096/0.2504, allocations: 1.017 MB / 403.4 MB, free: 5.809 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.365e-05/0.2505, allocations: 0 / 403.4 MB, free: 5.809 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001552/0.2506, allocations: 39.66 kB / 403.4 MB, free: 5.77 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001207/0.2508, allocations: 51.52 kB / 403.4 MB, free: 5.719 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003717/0.2512, allocations: 123.8 kB / 403.6 MB, free: 5.598 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004864/0.2517, allocations: 419 kB / 404 MB, free: 5.188 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002101/0.2519, allocations: 103.1 kB / 404.1 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009519/0.2528, allocations: 0.9396 MB / 405 MB, free: 4.141 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002579/0.2531, allocations: 203.2 kB / 405.2 MB, free: 3.941 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.775e-05/0.2532, allocations: 32 kB / 405.2 MB, free: 3.91 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.016e-05/0.2533, allocations: 36 kB / 405.3 MB, free: 3.875 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000171/0.2535, allocations: 163.4 kB / 405.4 MB, free: 3.715 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002833/0.2538, allocations: 282.1 kB / 405.7 MB, free: 3.438 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001002/0.2548, allocations: 0.9834 MB / 406.7 MB, free: 2.453 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.2548, allocations: 0 / 406.7 MB, free: 2.453 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2548, allocations: 0 / 406.7 MB, free: 2.453 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.055e-06/0.2548, allocations: 0 / 406.7 MB, free: 2.453 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.001308/0.2561, allocations: 1.146 MB / 407.8 MB, free: 1.23 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.2562, allocations: 19.83 kB / 407.9 MB, free: 1.211 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.743e-05/0.2563, allocations: 50.73 kB / 407.9 MB, free: 1.152 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001238/0.2564, allocations: 88.42 kB / 408 MB, free: 1.066 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004845/0.2569, allocations: 432.8 kB / 408.4 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.677e-05/0.2569, allocations: 20.38 kB / 408.4 MB, free: 0.582 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.836e-05/0.257, allocations: 20.38 kB / 408.5 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005948/0.2576, allocations: 293.6 kB / 408.7 MB, free: 276 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.836e-06/0.2576, allocations: 0 / 408.7 MB, free: 276 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.366e-05/0.2576, allocations: 15.98 kB / 408.8 MB, free: 260 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.672e-06/0.2577, allocations: 4 kB / 408.8 MB, free: 256 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004474/0.2581, allocations: 204.4 kB / 409 MB, free: 52 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001289/0.2594, allocations: 0.898 MB / 409.9 MB, free: 15.1 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004615/0.2599, allocations: 222.4 kB / 410.1 MB, free: 14.88 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002994/0.2602, allocations: 156.8 kB / 410.2 MB, free: 14.72 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.247e-05/0.2602, allocations: 4 kB / 410.2 MB, free: 14.71 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006115/0.2608, allocations: 381.4 kB / 410.6 MB, free: 14.31 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.523e-06/0.2609, allocations: 4 kB / 410.6 MB, free: 14.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0014/0.2623, allocations: 0.7458 MB / 411.4 MB, free: 13.52 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001215/0.2624, allocations: 178.1 kB / 411.5 MB, free: 13.31 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001328/0.2637, allocations: 1 MB / 412.5 MB, free: 12.3 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.55e-05/0.2638, allocations: 33.7 kB / 412.6 MB, free: 12.27 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001221/0.2639, allocations: 157.9 kB / 412.7 MB, free: 12.11 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.98e-05/0.264, allocations: 59.58 kB / 412.8 MB, free: 12.05 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002156/0.2642, allocations: 165.3 kB / 412.9 MB, free: 11.88 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.2644, allocations: 342.8 kB / 413.3 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002776/0.2647, allocations: 123.9 kB / 413.4 MB, free: 11.41 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002949/0.265, allocations: 160.2 kB / 413.6 MB, free: 11.24 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000609/0.2656, allocations: 477.8 kB / 414 MB, free: 10.71 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.2656, allocations: 3.938 kB / 414 MB, free: 10.71 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009839/0.2666, allocations: 0.5898 MB / 414.6 MB, free: 10.09 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001423/0.2667, allocations: 130.8 kB / 414.7 MB, free: 9.934 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.66e-06/0.2667, allocations: 0 / 414.7 MB, free: 9.934 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.618e-05/0.2668, allocations: 4 kB / 414.7 MB, free: 9.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.171e-05/0.2669, allocations: 15.98 kB / 414.8 MB, free: 9.914 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.01e-05/0.2669, allocations: 7.922 kB / 414.8 MB, free: 9.906 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002093/0.2671, allocations: 23.92 kB / 414.8 MB, free: 9.883 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001198/0.2672, allocations: 112 kB / 414.9 MB, free: 9.773 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.0005942/0.2678, allocations: 0.5298 MB / 415.4 MB, free: 9.211 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.92e-05/0.2679, allocations: 83.48 kB / 415.5 MB, free: 9.129 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001984/0.2681, allocations: 130.4 kB / 415.6 MB, free: 8.996 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.2681, allocations: 0 / 415.6 MB, free: 8.996 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.2681, allocations: 4 kB / 415.6 MB, free: 8.992 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.2682, allocations: 4.109 kB / 415.6 MB, free: 8.988 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007098/0.2689, allocations: 0.6219 MB / 416.3 MB, free: 8.316 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.2689, allocations: 0 / 416.3 MB, free: 8.316 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.844e-05/0.2689, allocations: 19.92 kB / 416.3 MB, free: 8.297 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.2689, allocations: 0 / 416.3 MB, free: 8.297 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.949e-05/0.269, allocations: 23.98 kB / 416.3 MB, free: 8.273 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.269, allocations: 4 kB / 416.3 MB, free: 8.27 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.269, allocations: 0 / 416.3 MB, free: 8.27 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001167/0.2702, allocations: 0.7155 MB / 417 MB, free: 7.512 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006852/0.2709, allocations: 0.4961 MB / 417.5 MB, free: 6.996 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001147/0.271, allocations: 20 kB / 417.5 MB, free: 6.977 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001685/0.2712, allocations: 19.98 kB / 417.6 MB, free: 6.957 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001555/0.2713, allocations: 51.89 kB / 417.6 MB, free: 6.906 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001289/0.2715, allocations: 119.9 kB / 417.7 MB, free: 6.789 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001005/0.2725, allocations: 0.7289 MB / 418.5 MB, free: 6.066 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2725, allocations: 0 / 418.5 MB, free: 6.066 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003513/0.2729, allocations: 91.95 kB / 418.6 MB, free: 5.977 MB / 334.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.00159/0.2744, allocations: 1.292 MB / 419.8 MB, free: 4.629 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009929/0.2755, allocations: 0.6497 MB / 420.5 MB, free: 3.93 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.2755, allocations: 0 / 420.5 MB, free: 3.93 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00061/0.2761, allocations: 0.529 MB / 421 MB, free: 3.352 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008675/0.277, allocations: 201.5 kB / 421.2 MB, free: 3.172 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006682/0.2837, allocations: 4.521 MB / 425.7 MB, free: 14.52 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008031/0.2845, allocations: 0.979 MB / 426.7 MB, free: 13.51 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003689/0.2849, allocations: 161.2 kB / 426.9 MB, free: 13.35 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002571/0.2851, allocations: 135.2 kB / 427 MB, free: 13.22 MB / 350.1 MB Notification: Performance of SimCode: time 1.122e-06/0.2851, allocations: 0 / 427 MB, free: 13.22 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03436/0.3195, allocations: 10.26 MB / 437.3 MB, free: 3.074 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.113/8.432, allocations: 4 kB / 437.3 MB, free: 3.07 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_HalfAdder_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_HalfAdder.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches