Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001262/0.001262, allocations: 103.6 kB / 21.18 MB, free: 472 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001343/0.001343, allocations: 214.4 kB / 24.47 MB, free: 3.793 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.392/1.392, allocations: 207.7 MB / 235.3 MB, free: 9.777 MB / 190.1 MB " [Timeout remaining time 178] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001725/0.001725, allocations: 58.91 kB / 347.2 MB, free: 9.891 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2622/0.264, allocations: 49.15 MB / 396.3 MB, free: 8.867 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002302/0.2663, allocations: 1.512 MB / 397.9 MB, free: 7.859 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001626/0.2679, allocations: 0.8649 MB / 398.7 MB, free: 7.297 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.758e-05/0.2679, allocations: 1.062 kB / 398.7 MB, free: 7.297 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 8.451e-05/0.268, allocations: 12.7 kB / 398.7 MB, free: 7.289 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.609e-05/0.2681, allocations: 25.97 kB / 398.8 MB, free: 7.273 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002394/0.2683, allocations: 64.05 kB / 398.8 MB, free: 7.234 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001913/0.2685, allocations: 154.6 kB / 399 MB, free: 7.16 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.432e-05/0.2686, allocations: 18.69 kB / 399 MB, free: 7.152 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000649/0.2693, allocations: 0.6309 MB / 399.6 MB, free: 7.098 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001396/0.2694, allocations: 83.8 kB / 399.7 MB, free: 7.066 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.152e-05/0.2695, allocations: 11.38 kB / 399.7 MB, free: 7.066 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.312e-05/0.2695, allocations: 10.78 kB / 399.7 MB, free: 7.066 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.391e-05/0.2696, allocations: 77.38 kB / 399.8 MB, free: 7.039 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.954e-05/0.2697, allocations: 100.7 kB / 399.9 MB, free: 6.973 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004549/0.2701, allocations: 461.5 kB / 400.4 MB, free: 6.832 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.234e-06/0.2701, allocations: 1.062 kB / 400.4 MB, free: 6.832 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.2701, allocations: 0 / 400.4 MB, free: 6.832 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.672e-06/0.2701, allocations: 0 / 400.4 MB, free: 6.832 MB / 318.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.0006155/0.2708, allocations: 0.7542 MB / 401.1 MB, free: 6.188 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.2708, allocations: 12.2 kB / 401.1 MB, free: 6.184 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.552e-05/0.2708, allocations: 40.66 kB / 401.2 MB, free: 6.141 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.246e-05/0.2709, allocations: 45.2 kB / 401.2 MB, free: 6.117 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002559/0.2712, allocations: 245.9 kB / 401.4 MB, free: 5.902 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.89e-05/0.2712, allocations: 8.219 kB / 401.5 MB, free: 5.898 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.338e-05/0.2712, allocations: 16.78 kB / 401.5 MB, free: 5.891 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003568/0.2716, allocations: 317 kB / 401.8 MB, free: 5.664 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.435e-06/0.2716, allocations: 0 / 401.8 MB, free: 5.664 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.537e-05/0.2716, allocations: 7.781 kB / 401.8 MB, free: 5.66 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.2716, allocations: 1.938 kB / 401.8 MB, free: 5.66 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000201/0.2718, allocations: 228.5 kB / 402 MB, free: 5.477 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006917/0.2725, allocations: 450.1 kB / 402.5 MB, free: 5.152 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002249/0.2727, allocations: 244.6 kB / 402.7 MB, free: 4.945 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001808/0.2729, allocations: 234 kB / 402.9 MB, free: 4.75 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.148e-05/0.2729, allocations: 4.906 kB / 402.9 MB, free: 4.746 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003629/0.2733, allocations: 394.1 kB / 403.3 MB, free: 4.438 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.353e-06/0.2733, allocations: 0 / 403.3 MB, free: 4.438 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.000936/0.2742, allocations: 0.8999 MB / 404.2 MB, free: 3.805 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.234e-05/0.2743, allocations: 198.1 kB / 404.4 MB, free: 3.578 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006618/0.2749, allocations: 0.5603 MB / 405 MB, free: 3.277 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.799e-05/0.275, allocations: 31.33 kB / 405 MB, free: 3.246 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.475e-05/0.275, allocations: 117.6 kB / 405.1 MB, free: 3.141 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.972e-05/0.2751, allocations: 29 kB / 405.1 MB, free: 3.121 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001174/0.2752, allocations: 101.1 kB / 405.2 MB, free: 3.07 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.274e-05/0.2752, allocations: 337.3 kB / 405.6 MB, free: 2.742 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001876/0.2754, allocations: 225.8 kB / 405.8 MB, free: 2.559 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001884/0.2756, allocations: 248.9 kB / 406 MB, free: 2.352 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003224/0.2759, allocations: 446.9 kB / 406.5 MB, free: 1.957 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.2759, allocations: 0 / 406.5 MB, free: 1.957 MB / 318.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000638/0.2766, allocations: 0.6489 MB / 407.1 MB, free: 1.52 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.028e-05/0.2766, allocations: 156 kB / 407.3 MB, free: 1.355 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.2766, allocations: 0 / 407.3 MB, free: 1.355 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/0.2766, allocations: 1.141 kB / 407.3 MB, free: 1.355 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.875e-05/0.2767, allocations: 9.875 kB / 407.3 MB, free: 1.348 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.2767, allocations: 1.375 kB / 407.3 MB, free: 1.348 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001415/0.2768, allocations: 13.52 kB / 407.3 MB, free: 1.348 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001001/0.2769, allocations: 94.94 kB / 407.4 MB, free: 1.344 MB / 318.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.000289/0.2772, allocations: 403.5 kB / 407.8 MB, free: 1.004 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.31e-05/0.2772, allocations: 47.09 kB / 407.8 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001004/0.2773, allocations: 72.89 kB / 407.9 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.2773, allocations: 0.7188 kB / 407.9 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.2774, allocations: 9.312 kB / 407.9 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.2774, allocations: 4.703 kB / 407.9 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009861/0.2783, allocations: 1.071 MB / 409 MB, free: 160 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.2783, allocations: 0.5156 kB / 409 MB, free: 160 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.969e-06/0.2784, allocations: 1.375 kB / 409 MB, free: 160 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.2784, allocations: 0.7969 kB / 409 MB, free: 160 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.834e-05/0.2784, allocations: 22.19 kB / 409 MB, free: 156 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.845e-06/0.2784, allocations: 5.391 kB / 409 MB, free: 152 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.2784, allocations: 0 / 409 MB, free: 152 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008855/0.2793, allocations: 0.803 MB / 409.8 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000444/0.2797, allocations: 221.6 kB / 410 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.609e-05/0.2798, allocations: 11.91 kB / 410 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000149/0.2799, allocations: 20.94 kB / 410.1 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001495/0.2801, allocations: 54.52 kB / 410.1 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001054/0.2802, allocations: 104.6 kB / 410.2 MB, free: 15.43 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005344/0.2807, allocations: 424 kB / 410.6 MB, free: 15.21 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2807, allocations: 0 / 410.6 MB, free: 15.21 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002889/0.281, allocations: 48.59 kB / 410.7 MB, free: 15.21 MB / 334.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.001289/0.2823, allocations: 1.368 MB / 412 MB, free: 14.11 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007608/0.2831, allocations: 0.7649 MB / 412.8 MB, free: 13.4 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.2831, allocations: 4.062 kB / 412.8 MB, free: 13.39 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000459/0.2835, allocations: 0.5219 MB / 413.3 MB, free: 12.88 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008159/0.2843, allocations: 191.1 kB / 413.5 MB, free: 12.82 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004497/0.2888, allocations: 3.965 MB / 417.5 MB, free: 9.824 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002891/0.2891, allocations: 209.3 kB / 417.7 MB, free: 9.676 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.072e-05/0.2892, allocations: 18.42 kB / 417.7 MB, free: 9.656 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.72e-05/0.2893, allocations: 45.7 kB / 417.8 MB, free: 9.617 MB / 334.1 MB Notification: Performance of SimCode: time 6.71e-07/0.2893, allocations: 0 / 417.8 MB, free: 9.617 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03962/0.3289, allocations: 10.49 MB / 428.2 MB, free: 1.434 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.67/11, allocations: 7.938 kB / 428.3 MB, free: 1.426 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_MUX2x1_fmu --startTime=0 --stopTime=15 --stepSize=0.00299162 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_MUX2x1.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 13.321364962961525]