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.001291/0.001291, allocations: 110.5 kB / 17.73 MB, free: 5.359 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.00135/0.00135, allocations: 187.1 kB / 18.66 MB, free: 4.438 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.333/1.333, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001656/0.001656, allocations: 55.92 kB / 328 MB, free: 3.82 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08899/0.09065, allocations: 46.62 MB / 374.6 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003215/0.0939, allocations: 2.122 MB / 376.8 MB, free: 2.961 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002154/0.09608, allocations: 1.061 MB / 377.8 MB, free: 1.891 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.63e-05/0.0962, allocations: 4 kB / 377.8 MB, free: 1.887 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001601/0.09639, allocations: 39.59 kB / 377.9 MB, free: 1.848 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001083/0.09651, allocations: 47.58 kB / 377.9 MB, free: 1.801 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000363/0.09688, allocations: 127.8 kB / 378 MB, free: 1.676 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004914/0.09738, allocations: 411.1 kB / 378.4 MB, free: 1.273 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000214/0.0976, allocations: 107 kB / 378.5 MB, free: 1.168 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009669/0.09858, allocations: 0.9435 MB / 379.5 MB, free: 228 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002681/0.09886, allocations: 195.2 kB / 379.7 MB, free: 32 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.949e-05/0.09896, allocations: 32 kB / 379.7 MB, free: 0 / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001668/0.2661, allocations: 34.92 kB / 379.7 MB, free: 10.16 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001765/0.2663, allocations: 159.5 kB / 379.9 MB, free: 10.16 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002448/0.2665, allocations: 288.1 kB / 380.2 MB, free: 10.05 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001002/0.2675, allocations: 0.977 MB / 381.2 MB, free: 9.938 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.2675, allocations: 1.375 kB / 381.2 MB, free: 9.938 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.426e-06/0.2675, allocations: 0 / 381.2 MB, free: 9.938 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.347e-05/0.2676, allocations: 7.688 kB / 381.2 MB, free: 9.934 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.001202/0.2688, allocations: 1.138 MB / 382.3 MB, free: 9.109 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.708e-05/0.2688, allocations: 9.625 kB / 382.3 MB, free: 9.109 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.937e-05/0.2689, allocations: 56.19 kB / 382.4 MB, free: 9.07 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001106/0.269, allocations: 88.52 kB / 382.5 MB, free: 9.027 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004096/0.2694, allocations: 439.2 kB / 382.9 MB, free: 8.707 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.369e-05/0.2695, allocations: 15.16 kB / 382.9 MB, free: 8.707 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.044e-05/0.2696, allocations: 19.41 kB / 382.9 MB, free: 8.707 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006377/0.2702, allocations: 304.4 kB / 383.2 MB, free: 8.668 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.2702, allocations: 0.5938 kB / 383.2 MB, free: 8.668 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.549e-05/0.2703, allocations: 9.406 kB / 383.2 MB, free: 8.668 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.578e-06/0.2703, allocations: 7.25 kB / 383.2 MB, free: 8.668 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004894/0.2708, allocations: 211.5 kB / 383.4 MB, free: 8.664 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001443/0.2722, allocations: 0.8839 MB / 384.3 MB, free: 8.328 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004469/0.2727, allocations: 221.9 kB / 384.5 MB, free: 8.305 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002631/0.273, allocations: 155.6 kB / 384.7 MB, free: 8.297 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.467e-05/0.273, allocations: 5.625 kB / 384.7 MB, free: 8.297 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005736/0.2736, allocations: 392.6 kB / 385.1 MB, free: 8.121 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 2.345e-06/0.2736, allocations: 2.812 kB / 385.1 MB, free: 8.121 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001318/0.2749, allocations: 0.7355 MB / 385.8 MB, free: 7.898 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.976e-05/0.275, allocations: 178 kB / 386 MB, free: 7.703 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001388/0.2764, allocations: 0.9966 MB / 387 MB, free: 7.203 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.932e-05/0.2765, allocations: 36.59 kB / 387 MB, free: 7.168 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.893e-05/0.2766, allocations: 158.4 kB / 387.2 MB, free: 7.039 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.927e-05/0.2766, allocations: 58.03 kB / 387.2 MB, free: 7 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002384/0.2769, allocations: 170.7 kB / 387.4 MB, free: 6.91 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.353e-05/0.277, allocations: 336.2 kB / 387.7 MB, free: 6.586 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000272/0.2772, allocations: 129.8 kB / 387.9 MB, free: 6.539 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002675/0.2775, allocations: 160.3 kB / 388 MB, free: 6.453 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004834/0.278, allocations: 477.2 kB / 388.5 MB, free: 6.066 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.278, allocations: 1.406 kB / 388.5 MB, free: 6.066 MB / 318.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009438/0.279, allocations: 0.5811 MB / 389.1 MB, free: 5.773 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.874e-05/0.2791, allocations: 132.6 kB / 389.2 MB, free: 5.641 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.784e-06/0.2791, allocations: 1.859 kB / 389.2 MB, free: 5.641 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.908e-05/0.2791, allocations: 3 kB / 389.2 MB, free: 5.641 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.612e-05/0.2792, allocations: 16.41 kB / 389.2 MB, free: 5.641 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.694e-06/0.2792, allocations: 6.594 kB / 389.2 MB, free: 5.637 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002563/0.2795, allocations: 25.06 kB / 389.2 MB, free: 5.629 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001228/0.2796, allocations: 117.8 kB / 389.4 MB, free: 5.617 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.0006798/0.2803, allocations: 0.534 MB / 389.9 MB, free: 5.23 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001054/0.2804, allocations: 84.17 kB / 390 MB, free: 5.188 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002188/0.2806, allocations: 136.5 kB / 390.1 MB, free: 5.102 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.2806, allocations: 5.031 kB / 390.1 MB, free: 5.102 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/0.2806, allocations: 0.7031 kB / 390.1 MB, free: 5.102 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.2807, allocations: 1.156 kB / 390.1 MB, free: 5.102 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000759/0.2814, allocations: 0.6295 MB / 390.7 MB, free: 4.699 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.2814, allocations: 0 / 390.7 MB, free: 4.699 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.093e-05/0.2815, allocations: 11.33 kB / 390.8 MB, free: 4.699 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.2815, allocations: 1.375 kB / 390.8 MB, free: 4.699 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.51e-05/0.2816, allocations: 22.39 kB / 390.8 MB, free: 4.699 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.626e-06/0.2816, allocations: 2.438 kB / 390.8 MB, free: 4.699 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.2816, allocations: 4 kB / 390.8 MB, free: 4.695 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001032/0.2826, allocations: 0.7064 MB / 391.5 MB, free: 4.316 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006173/0.2832, allocations: 0.4948 MB / 392 MB, free: 3.98 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001027/0.2834, allocations: 20.09 kB / 392 MB, free: 3.973 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001707/0.2835, allocations: 14.64 kB / 392 MB, free: 3.973 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001601/0.2837, allocations: 52.66 kB / 392.1 MB, free: 3.957 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001198/0.2838, allocations: 117.9 kB / 392.2 MB, free: 3.945 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0009532/0.2848, allocations: 0.7292 MB / 392.9 MB, free: 3.586 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.2848, allocations: 3.938 kB / 392.9 MB, free: 3.582 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004078/0.2852, allocations: 94.67 kB / 393 MB, free: 3.57 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.001252/0.2865, allocations: 1.284 MB / 394.3 MB, free: 2.652 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000813/0.2873, allocations: 0.6581 MB / 395 MB, free: 2.207 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.2873, allocations: 1.469 kB / 395 MB, free: 2.207 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004481/0.2878, allocations: 0.5224 MB / 395.5 MB, free: 1.797 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008825/0.2887, allocations: 199.6 kB / 395.7 MB, free: 1.738 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006597/0.2953, allocations: 4.534 MB / 400.2 MB, free: 15 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008258/0.2961, allocations: 0.9625 MB / 401.2 MB, free: 14.21 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005084/0.2966, allocations: 173.4 kB / 401.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000253/0.2969, allocations: 133.1 kB / 401.5 MB, free: 14.01 MB / 334.1 MB Notification: Performance of SimCode: time 1.012e-06/0.2969, allocations: 0 / 401.5 MB, free: 14.01 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03781/0.3347, allocations: 10.25 MB / 411.7 MB, free: 9.789 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.194/8.529, allocations: 15.39 kB / 411.7 MB, free: 9.773 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_HalfAdder_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 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.mat","/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