Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008214/0.0008214, allocations: 94.66 kB / 17.35 MB, free: 6.023 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009739/0.0009738, allocations: 200.3 kB / 18.28 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.23/1.23, allocations: 227.7 MB / 246.8 MB, free: 11.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000201/0.000201, allocations: 8 kB / 307.8 MB, free: 0.7461 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08009/0.0803, allocations: 51.53 MB / 359.4 MB, free: 13.22 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.0016/0.08193, allocations: 1.28 MB / 360.6 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001687/0.08364, allocations: 0.9124 MB / 361.6 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.193e-05/0.08371, allocations: 0 / 361.6 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 6.841e-05/0.08379, allocations: 11.86 kB / 361.6 MB, free: 11 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.162e-05/0.08388, allocations: 19.91 kB / 361.6 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002129/0.0841, allocations: 47.91 kB / 361.6 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001478/0.08426, allocations: 131.7 kB / 361.8 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.317e-05/0.08436, allocations: 25.39 kB / 361.8 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000612/0.08498, allocations: 0.6316 MB / 362.4 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001215/0.08511, allocations: 79.69 kB / 362.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.501e-05/0.08515, allocations: 4 kB / 362.5 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.908e-05/0.08519, allocations: 4 kB / 362.5 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.409e-05/0.08528, allocations: 79.62 kB / 362.6 MB, free: 9.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001437/0.08543, allocations: 152.7 kB / 362.7 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003596/0.08579, allocations: 442.3 kB / 363.2 MB, free: 9.391 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.0858, allocations: 0 / 363.2 MB, free: 9.391 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.08581, allocations: 0 / 363.2 MB, free: 9.391 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.023e-05/0.08583, allocations: 4 kB / 363.2 MB, free: 9.387 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0006898/0.08652, allocations: 0.7325 MB / 363.9 MB, free: 8.574 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.08656, allocations: 12.03 kB / 363.9 MB, free: 8.562 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.859e-05/0.08664, allocations: 38.75 kB / 363.9 MB, free: 8.516 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.213e-05/0.08672, allocations: 48.36 kB / 364 MB, free: 8.469 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002752/0.087, allocations: 294.2 kB / 364.3 MB, free: 8.141 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.161e-05/0.08703, allocations: 4.375 kB / 364.3 MB, free: 8.137 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.376e-05/0.08707, allocations: 12.38 kB / 364.3 MB, free: 8.125 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003401/0.08741, allocations: 169.7 kB / 364.5 MB, free: 7.953 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.683e-06/0.08743, allocations: 4 kB / 364.5 MB, free: 7.949 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.587e-05/0.08746, allocations: 4 kB / 364.5 MB, free: 7.945 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.967e-06/0.08747, allocations: 0 / 364.5 MB, free: 7.945 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001744/0.08765, allocations: 83.95 kB / 364.6 MB, free: 7.863 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006512/0.08831, allocations: 0.5081 MB / 365.1 MB, free: 7.305 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002016/0.08852, allocations: 122.5 kB / 365.2 MB, free: 7.176 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001754/0.08871, allocations: 116.8 kB / 365.3 MB, free: 7.059 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.127e-06/0.08872, allocations: 0 / 365.3 MB, free: 7.059 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003241/0.08905, allocations: 238.6 kB / 365.5 MB, free: 6.801 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.372e-06/0.08906, allocations: 0 / 365.5 MB, free: 6.801 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0008984/0.08997, allocations: 0.6221 MB / 366.1 MB, free: 6.145 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.196e-05/0.09007, allocations: 199.9 kB / 366.3 MB, free: 5.906 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006356/0.09072, allocations: 0.564 MB / 366.9 MB, free: 5.336 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.379e-05/0.09077, allocations: 29.7 kB / 366.9 MB, free: 5.301 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.136e-05/0.09084, allocations: 121 kB / 367.1 MB, free: 5.18 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.312e-05/0.09089, allocations: 27.7 kB / 367.1 MB, free: 5.152 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.87e-05/0.09095, allocations: 21.72 kB / 367.1 MB, free: 5.125 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001097/0.09106, allocations: 334.8 kB / 367.4 MB, free: 4.789 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001514/0.09122, allocations: 84.06 kB / 367.5 MB, free: 4.707 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001656/0.09139, allocations: 109.6 kB / 367.6 MB, free: 4.594 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000378/0.09178, allocations: 437.5 kB / 368 MB, free: 4.102 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.09179, allocations: 7.938 kB / 368.1 MB, free: 4.094 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006208/0.09242, allocations: 0.4979 MB / 368.6 MB, free: 3.559 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.453e-05/0.09251, allocations: 152.5 kB / 368.7 MB, free: 3.379 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/0.09252, allocations: 0 / 368.7 MB, free: 3.379 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.679e-06/0.09254, allocations: 0 / 368.7 MB, free: 3.379 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.774e-05/0.09256, allocations: 12.03 kB / 368.7 MB, free: 3.367 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.278e-06/0.09257, allocations: 0 / 368.7 MB, free: 3.367 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001595/0.09274, allocations: 15.98 kB / 368.7 MB, free: 3.352 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.143e-05/0.09284, allocations: 97.23 kB / 368.8 MB, free: 3.258 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.Mux2x1.inertialDelaySensitive.y,Input0.y,Select.y,Input1.y,Mux2x1.inertialDelaySensitive.t_next,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.y_old,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.x,$PRE.Mux2x1.inertialDelaySensitive.x,Mux2x1.yy,Mux2x1.nextstate,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 5 * 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.0003329/0.09317, allocations: 396 kB / 369.2 MB, free: 2.828 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.398e-05/0.09324, allocations: 51.38 kB / 369.3 MB, free: 2.777 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001041/0.09335, allocations: 75.45 kB / 369.3 MB, free: 2.699 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.09335, allocations: 0 / 369.3 MB, free: 2.699 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.09336, allocations: 4 kB / 369.3 MB, free: 2.695 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.315e-06/0.09337, allocations: 0 / 369.3 MB, free: 2.695 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001002/0.09438, allocations: 0.9671 MB / 370.3 MB, free: 1.641 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.09439, allocations: 0 / 370.3 MB, free: 1.641 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.899e-06/0.0944, allocations: 0 / 370.3 MB, free: 1.641 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.0944, allocations: 0 / 370.3 MB, free: 1.641 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.268e-05/0.09444, allocations: 19.98 kB / 370.3 MB, free: 1.621 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.025e-06/0.09445, allocations: 3.938 kB / 370.3 MB, free: 1.617 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.09445, allocations: 0 / 370.3 MB, free: 1.617 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007243/0.09518, allocations: 0.6712 MB / 371 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002962/0.09549, allocations: 252.4 kB / 371.2 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.993e-05/0.09556, allocations: 12.19 kB / 371.3 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000152/0.09571, allocations: 23.84 kB / 371.3 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001177/0.09584, allocations: 55.92 kB / 371.3 MB, free: 0.543 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.643e-05/0.09593, allocations: 109.2 kB / 371.4 MB, free: 444 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004545/0.09639, allocations: 418.8 kB / 371.9 MB, free: 24 kB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.0964, allocations: 4 kB / 371.9 MB, free: 20 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.1323/0.2287, allocations: 46.95 kB / 371.9 MB, free: 19.67 MB / 302.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: 14 ($whenCondition1,$whenCondition2,Mux2x1.nextstate,Mux2x1.yy,Mux2x1.inertialDelaySensitive.x,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.y_old,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.t_next,Input1.y,Select.y,Input0.y) * Number of discrete states: 14 (Input1.y,Select.y,Input0.y,Mux2x1.yy,Mux2x1.nextstate,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.t_next,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,Mux2x1.inertialDelaySensitive.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 5 * 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.00101/0.2297, allocations: 1.207 MB / 373.1 MB, free: 18.86 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005177/0.2302, allocations: 0.533 MB / 373.6 MB, free: 18.54 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.2303, allocations: 1.125 kB / 373.6 MB, free: 18.54 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002912/0.2305, allocations: 464 kB / 374.1 MB, free: 18.23 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000828/0.2314, allocations: 179.2 kB / 374.3 MB, free: 18.23 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0036/0.235, allocations: 3.3 MB / 377.6 MB, free: 16.47 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003479/0.2354, allocations: 0.8163 MB / 378.4 MB, free: 15.75 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.94e-05/0.2355, allocations: 19.72 kB / 378.4 MB, free: 15.74 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.645e-05/0.2355, allocations: 45.22 kB / 378.5 MB, free: 15.73 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2355, allocations: 0 / 378.5 MB, free: 15.73 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01949/0.255, allocations: 8.3 MB / 386.8 MB, free: 13.61 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001367/0.2552, allocations: 186.3 kB / 386.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.711/1.966, allocations: 3.375 kB / 386.9 MB, free: 13.36 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_MUX2x1_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_MUX2x1.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches