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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001455/0.001455, allocations: 118.7 kB / 18.5 MB, free: 4.559 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001825/0.001825, allocations: 206.5 kB / 21.45 MB, free: 1.609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.55/1.55, allocations: 230.2 MB / 254.5 MB, free: 15.42 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00187/0.00187, allocations: 59.91 kB / 373.3 MB, free: 10.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1151, allocations: 53.32 MB / 426.7 MB, free: 5.043 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002829/0.1179, allocations: 1.582 MB / 428.2 MB, free: 3.453 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002139/0.1201, allocations: 0.9004 MB / 429.1 MB, free: 2.547 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.07e-05/0.1201, allocations: 0 / 429.1 MB, free: 2.547 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001079/0.1202, allocations: 15.86 kB / 429.2 MB, free: 2.531 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.68e-05/0.1203, allocations: 23.84 kB / 429.2 MB, free: 2.508 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002761/0.1206, allocations: 47.89 kB / 429.2 MB, free: 2.461 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002532/0.1209, allocations: 159.7 kB / 429.4 MB, free: 2.305 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001125/0.121, allocations: 25.33 kB / 429.4 MB, free: 2.273 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007287/0.1217, allocations: 0.6278 MB / 430 MB, free: 1.645 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001596/0.1219, allocations: 91.62 kB / 430.1 MB, free: 1.555 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.044e-05/0.1219, allocations: 8 kB / 430.1 MB, free: 1.547 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.326e-05/0.1219, allocations: 12 kB / 430.1 MB, free: 1.535 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001132/0.1221, allocations: 75.69 kB / 430.2 MB, free: 1.461 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001437/0.1222, allocations: 135 kB / 430.4 MB, free: 1.328 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004864/0.1227, allocations: 462.1 kB / 430.8 MB, free: 0.875 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.1227, allocations: 0 / 430.8 MB, free: 0.875 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1227, allocations: 0 / 430.8 MB, free: 0.875 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.194e-06/0.1227, allocations: 0 / 430.8 MB, free: 0.875 MB / 350.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.00102/0.1237, allocations: 0.8254 MB / 431.6 MB, free: 15.97 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/0.1238, allocations: 12.03 kB / 431.6 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.991e-05/0.1238, allocations: 50.67 kB / 431.7 MB, free: 15.9 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.323e-05/0.1239, allocations: 44.66 kB / 431.7 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003919/0.1243, allocations: 290.6 kB / 432 MB, free: 15.53 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.421e-05/0.1243, allocations: 8.375 kB / 432 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.573e-05/0.1244, allocations: 8.375 kB / 432 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003799/0.1247, allocations: 183.7 kB / 432.2 MB, free: 15.33 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.395e-06/0.1248, allocations: 0 / 432.2 MB, free: 15.33 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.833e-05/0.1248, allocations: 7.984 kB / 432.2 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-06/0.1248, allocations: 0 / 432.2 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001739/0.125, allocations: 87.95 kB / 432.3 MB, free: 15.24 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009223/0.1259, allocations: 0.5004 MB / 432.8 MB, free: 14.69 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002096/0.1261, allocations: 98.53 kB / 432.9 MB, free: 14.58 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001791/0.1263, allocations: 84.88 kB / 433 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.336e-05/0.1263, allocations: 0 / 433 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004595/0.1267, allocations: 254.5 kB / 433.2 MB, free: 14.22 MB / 366.1 MB Notification: Performance of pre-optimization done (n=14): time 1.492e-06/0.1267, allocations: 0 / 433.2 MB, free: 14.22 MB / 366.1 MB Notification: Performance of matching and sorting (n=14): time 0.001047/0.1278, allocations: 0.6102 MB / 433.8 MB, free: 13.58 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001374/0.1279, allocations: 195.9 kB / 434 MB, free: 13.34 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007568/0.1287, allocations: 0.564 MB / 434.6 MB, free: 12.77 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.891e-05/0.1287, allocations: 33.7 kB / 434.6 MB, free: 12.73 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001013/0.1288, allocations: 113.1 kB / 434.7 MB, free: 12.61 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.773e-05/0.1289, allocations: 31.88 kB / 434.8 MB, free: 12.58 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001451/0.129, allocations: 101.5 kB / 434.9 MB, free: 12.48 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001876/0.1292, allocations: 334.8 kB / 435.2 MB, free: 12.14 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001698/0.1294, allocations: 87.98 kB / 435.3 MB, free: 12.05 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001733/0.1295, allocations: 101.6 kB / 435.4 MB, free: 11.95 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000534/0.1301, allocations: 438.6 kB / 435.8 MB, free: 11.45 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.1301, allocations: 0 / 435.8 MB, free: 11.45 MB / 366.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007766/0.1309, allocations: 0.5001 MB / 436.3 MB, free: 10.92 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001276/0.131, allocations: 148.5 kB / 436.5 MB, free: 10.74 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.457e-06/0.131, allocations: 3.984 kB / 436.5 MB, free: 10.74 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.741e-05/0.131, allocations: 0 / 436.5 MB, free: 10.74 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.121e-05/0.131, allocations: 4 kB / 436.5 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.316e-06/0.131, allocations: 3.938 kB / 436.5 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001551/0.1312, allocations: 12 kB / 436.5 MB, free: 10.72 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001292/0.1313, allocations: 105.2 kB / 436.6 MB, free: 10.62 MB / 366.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.0004887/0.1318, allocations: 396.1 kB / 437 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.269e-05/0.1319, allocations: 55.72 kB / 437 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001715/0.1321, allocations: 71.47 kB / 437.1 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.1321, allocations: 7.938 kB / 437.1 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.1321, allocations: 0 / 437.1 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.1321, allocations: 3.984 kB / 437.1 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001332/0.1334, allocations: 0.9595 MB / 438.1 MB, free: 9.012 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.1334, allocations: 3.938 kB / 438.1 MB, free: 9.008 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.837e-06/0.1334, allocations: 4 kB / 438.1 MB, free: 9.004 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.749e-05/0.1334, allocations: 4 kB / 438.1 MB, free: 9 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.426e-05/0.1335, allocations: 19.98 kB / 438.1 MB, free: 8.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.07e-06/0.1335, allocations: 3.938 kB / 438.1 MB, free: 8.977 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.1335, allocations: 0 / 438.1 MB, free: 8.977 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009551/0.1344, allocations: 0.6598 MB / 438.8 MB, free: 8.27 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004425/0.1349, allocations: 260.6 kB / 439 MB, free: 7.996 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.76e-05/0.135, allocations: 8 kB / 439 MB, free: 7.988 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001547/0.1351, allocations: 19.92 kB / 439 MB, free: 7.969 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001768/0.1353, allocations: 59.94 kB / 439.1 MB, free: 7.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001194/0.1354, allocations: 101.2 kB / 439.2 MB, free: 7.812 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005895/0.136, allocations: 422.8 kB / 439.6 MB, free: 7.402 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.136, allocations: 0 / 439.6 MB, free: 7.402 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003306/0.1363, allocations: 52 kB / 439.7 MB, free: 7.352 MB / 366.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.001401/0.1377, allocations: 1.224 MB / 440.9 MB, free: 6.07 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006839/0.1384, allocations: 488.8 kB / 441.4 MB, free: 5.531 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.1384, allocations: 0 / 441.4 MB, free: 5.531 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004126/0.1388, allocations: 385 kB / 441.7 MB, free: 5.094 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008567/0.1397, allocations: 185.9 kB / 441.9 MB, free: 4.926 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005521/0.1452, allocations: 3.238 MB / 445.2 MB, free: 1.57 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007296/0.146, allocations: 0.8146 MB / 446 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001292/0.1461, allocations: 16.86 kB / 446 MB, free: 0.7109 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.12e-05/0.1462, allocations: 43.42 kB / 446 MB, free: 0.668 MB / 366.1 MB Notification: Performance of SimCode: time 1.463e-06/0.1462, allocations: 0 / 446 MB, free: 0.668 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2417/0.3879, allocations: 9.234 MB / 455.3 MB, free: 23.89 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.23/8.618, allocations: 10.11 kB / 455.3 MB, free: 23.89 MB / 366.1 MB " [Timeout remaining time 651] (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 --stepSize=0.00299162 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_MUX2x1.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.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: 11.12497105076909]