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.001035/0.001035, allocations: 102.9 kB / 17.58 MB, free: 5.453 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.001121/0.001121, allocations: 187.9 kB / 18.51 MB, free: 4.531 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.289/1.289, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.001324/0.001324, allocations: 60.14 kB / 280.8 MB, free: 3.086 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06936/0.0707, allocations: 46.63 MB / 327.4 MB, free: 4.391 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003027/0.07376, allocations: 2.11 MB / 329.5 MB, free: 2.258 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001934/0.07571, allocations: 1.046 MB / 330.5 MB, free: 1.203 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001153/0.07585, allocations: 8 kB / 330.5 MB, free: 1.195 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000153/0.07602, allocations: 35.59 kB / 330.6 MB, free: 1.16 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001245/0.07616, allocations: 51.58 kB / 330.6 MB, free: 1.109 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003591/0.07652, allocations: 119.8 kB / 330.7 MB, free: 0.9922 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004228/0.07696, allocations: 407.1 kB / 331.1 MB, free: 0.5938 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002094/0.07717, allocations: 115 kB / 331.3 MB, free: 500 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008875/0.07807, allocations: 0.9436 MB / 332.2 MB, free: 15.54 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002332/0.07832, allocations: 195.2 kB / 332.4 MB, free: 15.35 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.718e-05/0.07842, allocations: 32 kB / 332.4 MB, free: 15.32 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.137e-05/0.07851, allocations: 36 kB / 332.5 MB, free: 15.29 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001915/0.07871, allocations: 175.3 kB / 332.6 MB, free: 15.11 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003049/0.07902, allocations: 290.1 kB / 332.9 MB, free: 14.83 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007289/0.07976, allocations: 0.958 MB / 333.9 MB, free: 13.87 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.07978, allocations: 0 / 333.9 MB, free: 13.87 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.07978, allocations: 0 / 333.9 MB, free: 13.87 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.674e-05/0.0798, allocations: 0 / 333.9 MB, free: 13.87 MB / 286.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.001194/0.081, allocations: 1.122 MB / 335 MB, free: 12.67 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.08105, allocations: 12.03 kB / 335 MB, free: 12.66 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.033e-05/0.08112, allocations: 50.73 kB / 335.1 MB, free: 12.6 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001159/0.08125, allocations: 80 kB / 335.1 MB, free: 12.52 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004215/0.08167, allocations: 436 kB / 335.6 MB, free: 12.05 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.151e-05/0.08172, allocations: 20.38 kB / 335.6 MB, free: 12.04 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.466e-05/0.08178, allocations: 24.31 kB / 335.6 MB, free: 12.01 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005582/0.08234, allocations: 309.1 kB / 335.9 MB, free: 11.7 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/0.08236, allocations: 0 / 335.9 MB, free: 11.7 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.185e-05/0.08241, allocations: 12 kB / 335.9 MB, free: 11.69 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.012e-06/0.08242, allocations: 4 kB / 335.9 MB, free: 11.69 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004118/0.08284, allocations: 203.9 kB / 336.1 MB, free: 11.49 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001223/0.08407, allocations: 0.894 MB / 337 MB, free: 10.54 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004906/0.08457, allocations: 222.5 kB / 337.2 MB, free: 10.32 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002876/0.08487, allocations: 152.8 kB / 337.4 MB, free: 10.16 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.366e-05/0.08491, allocations: 4.094 kB / 337.4 MB, free: 10.16 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005366/0.08545, allocations: 385.9 kB / 337.8 MB, free: 9.746 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.422e-06/0.08546, allocations: 0 / 337.8 MB, free: 9.746 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001284/0.08675, allocations: 0.7413 MB / 338.5 MB, free: 8.973 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.521e-05/0.08685, allocations: 174.2 kB / 338.7 MB, free: 8.766 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001171/0.08802, allocations: 1.012 MB / 339.7 MB, free: 7.742 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.687e-05/0.08808, allocations: 33.7 kB / 339.7 MB, free: 7.703 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.817e-05/0.08818, allocations: 157.8 kB / 339.9 MB, free: 7.547 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.915e-05/0.08826, allocations: 47.36 kB / 339.9 MB, free: 7.5 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001914/0.08846, allocations: 169 kB / 340.1 MB, free: 7.328 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001007/0.08857, allocations: 338.8 kB / 340.4 MB, free: 6.988 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002575/0.08883, allocations: 131.9 kB / 340.5 MB, free: 6.859 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002684/0.08911, allocations: 164.2 kB / 340.7 MB, free: 6.684 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005482/0.08966, allocations: 473.7 kB / 341.2 MB, free: 6.156 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.08968, allocations: 96 / 341.2 MB, free: 6.156 MB / 286.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008787/0.09056, allocations: 0.5819 MB / 341.7 MB, free: 5.543 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.489e-05/0.09066, allocations: 142.8 kB / 341.9 MB, free: 5.379 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.09067, allocations: 0 / 341.9 MB, free: 5.379 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.627e-05/0.0907, allocations: 7.984 kB / 341.9 MB, free: 5.371 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.663e-05/0.09078, allocations: 8 kB / 341.9 MB, free: 5.363 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.09079, allocations: 4 kB / 341.9 MB, free: 5.359 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002001/0.091, allocations: 23.89 kB / 341.9 MB, free: 5.336 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001161/0.09113, allocations: 115.9 kB / 342 MB, free: 5.223 MB / 286.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.0005279/0.09166, allocations: 0.5375 MB / 342.6 MB, free: 4.652 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.081e-05/0.09176, allocations: 75.16 kB / 342.6 MB, free: 4.578 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001886/0.09195, allocations: 130.4 kB / 342.8 MB, free: 4.438 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.09196, allocations: 0 / 342.8 MB, free: 4.438 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.09197, allocations: 0 / 342.8 MB, free: 4.438 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.09198, allocations: 0 / 342.8 MB, free: 4.438 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006389/0.09262, allocations: 0.6296 MB / 343.4 MB, free: 3.758 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.013e-06/0.09263, allocations: 128 / 343.4 MB, free: 3.758 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.648e-05/0.09269, allocations: 20 kB / 343.4 MB, free: 3.738 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.718e-06/0.0927, allocations: 4 kB / 343.4 MB, free: 3.734 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.34e-05/0.09275, allocations: 19.98 kB / 343.4 MB, free: 3.715 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.09275, allocations: 0 / 343.4 MB, free: 3.715 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.09276, allocations: 4 kB / 343.5 MB, free: 3.711 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001036/0.0938, allocations: 0.7024 MB / 344.2 MB, free: 2.965 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005746/0.09439, allocations: 495.6 kB / 344.6 MB, free: 2.461 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000109/0.0945, allocations: 24 kB / 344.7 MB, free: 2.438 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001698/0.09468, allocations: 23.97 kB / 344.7 MB, free: 2.414 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001444/0.09483, allocations: 51.95 kB / 344.7 MB, free: 2.363 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001054/0.09495, allocations: 115.8 kB / 344.8 MB, free: 2.25 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0008672/0.09582, allocations: 0.7328 MB / 345.6 MB, free: 1.52 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.09583, allocations: 0 / 345.6 MB, free: 1.52 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003453/0.09618, allocations: 91.94 kB / 345.7 MB, free: 1.43 MB / 286.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.001333/0.09752, allocations: 1.289 MB / 347 MB, free: 88 kB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0008399/0.09837, allocations: 0.6537 MB / 347.6 MB, free: 15.38 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.09839, allocations: 4.125 kB / 347.6 MB, free: 15.38 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004869/0.09888, allocations: 0.5212 MB / 348.1 MB, free: 14.81 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007773/0.09967, allocations: 205 kB / 348.3 MB, free: 14.61 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005788/0.1055, allocations: 4.509 MB / 352.8 MB, free: 9.961 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006328/0.1061, allocations: 0.9752 MB / 353.8 MB, free: 8.957 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003206/0.1065, allocations: 161.1 kB / 354 MB, free: 8.801 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000231/0.1067, allocations: 131.2 kB / 354.1 MB, free: 8.672 MB / 302.1 MB Notification: Performance of SimCode: time 7.21e-07/0.1067, allocations: 0 / 354.1 MB, free: 8.672 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6086/0.7153, allocations: 10.19 MB / 364.3 MB, free: 14.38 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.56/9.275, allocations: 19.55 kB / 364.3 MB, free: 14.36 MB / 318.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