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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001409/0.001409, allocations: 109.5 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001585/0.001585, allocations: 183.9 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.409/1.409, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001639/0.001639, allocations: 51.92 kB / 370.4 MB, free: 9.852 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2528/0.2545, allocations: 52.19 MB / 422.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.004005/0.2585, allocations: 2.122 MB / 424.8 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002559/0.261, allocations: 1.021 MB / 425.8 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001761/0.2612, allocations: 15.88 kB / 425.8 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002297/0.2614, allocations: 35.66 kB / 425.8 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001963/0.2616, allocations: 55.52 kB / 425.9 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005411/0.2622, allocations: 127.8 kB / 426 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006281/0.2628, allocations: 403 kB / 426.4 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002286/0.263, allocations: 67.58 kB / 426.5 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00109/0.2641, allocations: 0.967 MB / 427.4 MB, free: 9.766 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003058/0.2644, allocations: 211.1 kB / 427.6 MB, free: 9.559 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.551e-05/0.2645, allocations: 36 kB / 427.7 MB, free: 9.523 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.264e-05/0.2646, allocations: 36 kB / 427.7 MB, free: 9.488 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001776/0.2647, allocations: 159.4 kB / 427.9 MB, free: 9.332 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002799/0.265, allocations: 294 kB / 428.1 MB, free: 9.043 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009337/0.266, allocations: 0.9732 MB / 429.1 MB, free: 8.07 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.266, allocations: 3.938 kB / 429.1 MB, free: 8.066 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.266, allocations: 0 / 429.1 MB, free: 8.066 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.067e-05/0.266, allocations: 0 / 429.1 MB, free: 8.066 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.001321/0.2673, allocations: 1.066 MB / 430.2 MB, free: 6.941 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.578e-05/0.2673, allocations: 16.03 kB / 430.2 MB, free: 6.926 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.379e-05/0.2674, allocations: 54.73 kB / 430.3 MB, free: 6.863 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001235/0.2675, allocations: 84.42 kB / 430.3 MB, free: 6.781 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005354/0.2681, allocations: 371 kB / 430.7 MB, free: 6.391 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.635e-05/0.2681, allocations: 20.38 kB / 430.7 MB, free: 6.371 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.236e-05/0.2682, allocations: 20.38 kB / 430.7 MB, free: 6.352 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006455/0.2688, allocations: 293.6 kB / 431 MB, free: 6.059 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.2688, allocations: 0 / 431 MB, free: 6.059 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.174e-05/0.2689, allocations: 15.94 kB / 431 MB, free: 6.043 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.638e-06/0.2689, allocations: 0 / 431 MB, free: 6.043 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004688/0.2693, allocations: 215.8 kB / 431.3 MB, free: 5.832 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001508/0.2708, allocations: 0.8542 MB / 432.1 MB, free: 4.934 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006789/0.2715, allocations: 182.4 kB / 432.3 MB, free: 4.746 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004017/0.2719, allocations: 112.8 kB / 432.4 MB, free: 4.633 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.851e-05/0.272, allocations: 4 kB / 432.4 MB, free: 4.629 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008928/0.2729, allocations: 381.9 kB / 432.8 MB, free: 4.219 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 2.375e-06/0.2729, allocations: 0 / 432.8 MB, free: 4.219 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001767/0.2746, allocations: 0.7453 MB / 433.5 MB, free: 3.445 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001309/0.2748, allocations: 174.2 kB / 433.7 MB, free: 3.238 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001615/0.2764, allocations: 1.004 MB / 434.7 MB, free: 2.227 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.316e-05/0.2764, allocations: 33.7 kB / 434.7 MB, free: 2.188 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001685/0.2766, allocations: 162 kB / 434.9 MB, free: 2.023 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.422e-05/0.2767, allocations: 55.52 kB / 434.9 MB, free: 1.969 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002734/0.277, allocations: 169.3 kB / 435.1 MB, free: 1.797 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000185/0.2771, allocations: 342.8 kB / 435.4 MB, free: 1.453 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002839/0.2774, allocations: 116 kB / 435.6 MB, free: 1.34 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002987/0.2777, allocations: 164.2 kB / 435.7 MB, free: 1.164 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006572/0.2784, allocations: 477.7 kB / 436.2 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.571e-06/0.2784, allocations: 7.938 kB / 436.2 MB, free: 0.625 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.00106/0.2794, allocations: 0.5782 MB / 436.8 MB, free: 16 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000147/0.2796, allocations: 130.8 kB / 436.9 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.768e-06/0.2796, allocations: 4 kB / 436.9 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.762e-05/0.2796, allocations: 0 / 436.9 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.104e-05/0.2797, allocations: 20 kB / 436.9 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.803e-06/0.2797, allocations: 0 / 436.9 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002442/0.28, allocations: 27.92 kB / 436.9 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001545/0.2801, allocations: 111.9 kB / 437.1 MB, free: 15.7 MB / 350.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.0007075/0.2808, allocations: 0.5262 MB / 437.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000131/0.281, allocations: 91.42 kB / 437.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002297/0.2812, allocations: 134.5 kB / 437.8 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.2812, allocations: 0 / 437.8 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.2812, allocations: 0 / 437.8 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.409e-06/0.2812, allocations: 0 / 437.8 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008006/0.282, allocations: 0.5937 MB / 438.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.085e-06/0.282, allocations: 0 / 438.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.039e-05/0.282, allocations: 15.94 kB / 438.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.2821, allocations: 0 / 438.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.274e-05/0.2821, allocations: 27.98 kB / 438.4 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.2821, allocations: 0 / 438.4 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.2821, allocations: 4 kB / 438.4 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001126/0.2832, allocations: 0.7101 MB / 439.2 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008824/0.2841, allocations: 0.4891 MB / 439.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001183/0.2842, allocations: 24 kB / 439.7 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001699/0.2844, allocations: 19.98 kB / 439.7 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001667/0.2846, allocations: 55.88 kB / 439.7 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001349/0.2847, allocations: 115.9 kB / 439.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001037/0.2857, allocations: 0.7329 MB / 440.6 MB, free: 12.05 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2857, allocations: 0 / 440.6 MB, free: 12.05 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003808/0.2861, allocations: 87.95 kB / 440.7 MB, free: 11.96 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.001655/0.2878, allocations: 1.285 MB / 442 MB, free: 10.62 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008655/0.2886, allocations: 0.5406 MB / 442.5 MB, free: 10.03 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2886, allocations: 0 / 442.5 MB, free: 10.03 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000468/0.2891, allocations: 405.5 kB / 442.9 MB, free: 9.586 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007866/0.2899, allocations: 203.5 kB / 443.1 MB, free: 9.402 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006885/0.2968, allocations: 4.516 MB / 447.6 MB, free: 4.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008274/0.2976, allocations: 0.9712 MB / 448.6 MB, free: 3.754 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003472/0.298, allocations: 165.1 kB / 448.7 MB, free: 3.59 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002733/0.2982, allocations: 135.2 kB / 448.9 MB, free: 3.457 MB / 350.1 MB Notification: Performance of SimCode: time 1.172e-06/0.2982, allocations: 0 / 448.9 MB, free: 3.457 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04132/0.3396, allocations: 10.54 MB / 459.4 MB, free: 9.059 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.16/11.5, allocations: 8 kB / 459.4 MB, free: 9.051 MB / 366.1 MB " [Timeout remaining time 648] (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 --stepSize=0.000998004 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.866711892187595]