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.00115/0.00115, allocations: 105 kB / 17.32 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001211/0.001211, allocations: 209.8 kB / 18.26 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.391/1.391, allocations: 227.4 MB / 246.4 MB, free: 9.086 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001478/0.001478, allocations: 65.19 kB / 306.6 MB, free: 0.6367 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1205, allocations: 50.53 MB / 357.1 MB, free: 14.1 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.003094/0.1236, allocations: 1.619 MB / 358.7 MB, free: 12.47 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001939/0.1256, allocations: 0.8887 MB / 359.6 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001073/0.1257, allocations: 4 kB / 359.6 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001313/0.126, allocations: 11.92 kB / 359.6 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001258/0.1261, allocations: 11.92 kB / 359.6 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003679/0.1265, allocations: 59.88 kB / 359.7 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003247/0.1268, allocations: 171.7 kB / 359.8 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001508/0.127, allocations: 25.39 kB / 359.9 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008549/0.1278, allocations: 0.6395 MB / 360.5 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002448/0.1281, allocations: 95.67 kB / 360.6 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.364e-05/0.1282, allocations: 12 kB / 360.6 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.032e-05/0.1282, allocations: 12 kB / 360.6 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001107/0.1283, allocations: 75.64 kB / 360.7 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001482/0.1285, allocations: 139 kB / 360.8 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004109/0.1289, allocations: 450.5 kB / 361.3 MB, free: 9.879 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.1289, allocations: 4 kB / 361.3 MB, free: 9.875 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1289, allocations: 0 / 361.3 MB, free: 9.875 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.171e-05/0.1289, allocations: 0 / 361.3 MB, free: 9.875 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.0009994/0.1299, allocations: 0.8179 MB / 362.1 MB, free: 8.977 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.056e-05/0.13, allocations: 12.02 kB / 362.1 MB, free: 8.965 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.63e-05/0.1301, allocations: 38.75 kB / 362.1 MB, free: 8.918 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.317e-05/0.1302, allocations: 44.47 kB / 362.2 MB, free: 8.875 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003346/0.1305, allocations: 298.1 kB / 362.5 MB, free: 8.543 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.399e-05/0.1305, allocations: 8.375 kB / 362.5 MB, free: 8.535 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.828e-05/0.1306, allocations: 16.38 kB / 362.5 MB, free: 8.52 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003784/0.131, allocations: 165.7 kB / 362.7 MB, free: 8.352 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.477e-06/0.131, allocations: 0 / 362.7 MB, free: 8.352 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.039e-05/0.131, allocations: 8 kB / 362.7 MB, free: 8.344 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.581e-06/0.131, allocations: 4 kB / 362.7 MB, free: 8.34 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001813/0.1312, allocations: 87.89 kB / 362.8 MB, free: 8.254 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008049/0.132, allocations: 0.5004 MB / 363.3 MB, free: 7.703 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002317/0.1323, allocations: 126.5 kB / 363.4 MB, free: 7.57 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001989/0.1325, allocations: 104.9 kB / 363.5 MB, free: 7.465 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.185e-05/0.1325, allocations: 0 / 363.5 MB, free: 7.465 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000438/0.133, allocations: 245.9 kB / 363.7 MB, free: 7.203 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.723e-06/0.133, allocations: 4 kB / 363.7 MB, free: 7.199 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.001104/0.1341, allocations: 0.622 MB / 364.4 MB, free: 6.543 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000114/0.1342, allocations: 195.9 kB / 364.5 MB, free: 6.309 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007465/0.135, allocations: 0.5561 MB / 365.1 MB, free: 5.746 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.918e-05/0.135, allocations: 41.64 kB / 365.1 MB, free: 5.699 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001127/0.1351, allocations: 113.1 kB / 365.3 MB, free: 5.586 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.004e-05/0.1352, allocations: 31.61 kB / 365.3 MB, free: 5.555 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001585/0.1354, allocations: 97.41 kB / 365.4 MB, free: 5.453 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001372/0.1355, allocations: 334.8 kB / 365.7 MB, free: 5.117 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001782/0.1357, allocations: 87.95 kB / 365.8 MB, free: 5.031 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001731/0.1359, allocations: 101.6 kB / 365.9 MB, free: 4.926 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004497/0.1364, allocations: 437.3 kB / 366.3 MB, free: 4.434 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.1364, allocations: 0 / 366.3 MB, free: 4.434 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007642/0.1371, allocations: 0.4979 MB / 366.8 MB, free: 3.898 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001301/0.1373, allocations: 152.6 kB / 367 MB, free: 3.719 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.104e-05/0.1373, allocations: 7.969 kB / 367 MB, free: 3.711 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.056e-05/0.1373, allocations: 0 / 367 MB, free: 3.711 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.818e-05/0.1374, allocations: 4 kB / 367 MB, free: 3.707 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.145e-06/0.1374, allocations: 0 / 367 MB, free: 3.707 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002248/0.1376, allocations: 19.98 kB / 367 MB, free: 3.688 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001407/0.1378, allocations: 97.23 kB / 367.1 MB, free: 3.594 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.0005743/0.1384, allocations: 396 kB / 367.5 MB, free: 3.164 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.451e-05/0.1384, allocations: 47.44 kB / 367.5 MB, free: 3.117 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001424/0.1386, allocations: 79.45 kB / 367.6 MB, free: 3.035 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.022e-06/0.1386, allocations: 3.984 kB / 367.6 MB, free: 3.031 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.1386, allocations: 0 / 367.6 MB, free: 3.031 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.1386, allocations: 0 / 367.6 MB, free: 3.031 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001293/0.1399, allocations: 0.967 MB / 368.6 MB, free: 1.977 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.1399, allocations: 4.109 kB / 368.6 MB, free: 1.973 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.628e-06/0.14, allocations: 8 kB / 368.6 MB, free: 1.965 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.14, allocations: 0 / 368.6 MB, free: 1.965 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.905e-05/0.14, allocations: 19.98 kB / 368.6 MB, free: 1.945 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.35e-06/0.14, allocations: 3.938 kB / 368.6 MB, free: 1.941 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/0.14, allocations: 4 kB / 368.6 MB, free: 1.938 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007829/0.1408, allocations: 0.6595 MB / 369.3 MB, free: 1.23 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003433/0.1412, allocations: 256.4 kB / 369.5 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.284e-05/0.1413, allocations: 12 kB / 369.5 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001652/0.1414, allocations: 19.84 kB / 369.6 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001914/0.1416, allocations: 59.92 kB / 369.6 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001487/0.1418, allocations: 101.2 kB / 369.7 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005298/0.1423, allocations: 426.8 kB / 370.1 MB, free: 360 kB / 302.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1423, allocations: 0 / 370.1 MB, free: 360 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.000346/0.1427, allocations: 52 kB / 370.2 MB, free: 308 kB / 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.1926/0.3353, allocations: 1.205 MB / 371.4 MB, free: 19.94 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006248/0.336, allocations: 0.5363 MB / 371.9 MB, free: 19.62 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.336, allocations: 0 / 371.9 MB, free: 19.62 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003107/0.3363, allocations: 463 kB / 372.4 MB, free: 19.31 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008969/0.3372, allocations: 196.7 kB / 372.6 MB, free: 19.3 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004147/0.3414, allocations: 3.303 MB / 375.9 MB, free: 17.37 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003337/0.3418, allocations: 0.8155 MB / 376.7 MB, free: 16.64 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.677e-05/0.3419, allocations: 11.92 kB / 376.7 MB, free: 16.63 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.536e-05/0.3419, allocations: 45.69 kB / 376.7 MB, free: 16.6 MB / 302.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3419, allocations: 0 / 376.7 MB, free: 16.6 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02174/0.3637, allocations: 8.843 MB / 385.6 MB, free: 14.23 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001451/0.3639, allocations: 194.1 kB / 385.8 MB, free: 13.98 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.916/2.28, allocations: 4 kB / 385.8 MB, free: 13.98 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