Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001336/0.001336, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 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.001476/0.001476, allocations: 203.6 kB / 23.73 MB, free: 4.379 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.47/1.47, allocations: 230.6 MB / 257.5 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001523/0.001523, allocations: 55.86 kB / 377.7 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2808/0.2824, allocations: 53.36 MB / 431.1 MB, free: 6.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.00292/0.2853, allocations: 1.534 MB / 432.6 MB, free: 5.129 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002044/0.2873, allocations: 0.8498 MB / 433.5 MB, free: 4.273 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.72e-05/0.2874, allocations: 0 / 433.5 MB, free: 4.273 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.122e-05/0.2875, allocations: 11.86 kB / 433.5 MB, free: 4.262 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000102/0.2876, allocations: 27.86 kB / 433.5 MB, free: 4.234 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000287/0.2879, allocations: 59.75 kB / 433.6 MB, free: 4.176 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002517/0.2881, allocations: 159.7 kB / 433.7 MB, free: 4.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001134/0.2882, allocations: 17.58 kB / 433.7 MB, free: 3.996 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007417/0.289, allocations: 0.6317 MB / 434.4 MB, free: 3.363 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001666/0.2891, allocations: 91.61 kB / 434.5 MB, free: 3.273 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.194e-05/0.2892, allocations: 8 kB / 434.5 MB, free: 3.266 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.609e-05/0.2892, allocations: 12 kB / 434.5 MB, free: 3.254 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001071/0.2893, allocations: 83.69 kB / 434.6 MB, free: 3.172 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001239/0.2894, allocations: 91.23 kB / 434.6 MB, free: 3.082 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005069/0.2899, allocations: 463.8 kB / 435.1 MB, free: 2.629 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.29, allocations: 0 / 435.1 MB, free: 2.629 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.29, allocations: 0 / 435.1 MB, free: 2.629 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.29, allocations: 0 / 435.1 MB, free: 2.629 MB / 334.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.0008971/0.2909, allocations: 0.7463 MB / 435.8 MB, free: 1.82 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.2909, allocations: 15.95 kB / 435.9 MB, free: 1.805 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.59e-05/0.2909, allocations: 42.75 kB / 435.9 MB, free: 1.754 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.695e-05/0.291, allocations: 44.66 kB / 435.9 MB, free: 1.711 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003433/0.2914, allocations: 244.7 kB / 436.2 MB, free: 1.445 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.198e-05/0.2914, allocations: 8.375 kB / 436.2 MB, free: 1.438 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.866e-05/0.2914, allocations: 12.38 kB / 436.2 MB, free: 1.426 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005126/0.2919, allocations: 320.8 kB / 436.5 MB, free: 1.078 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.292, allocations: 0 / 436.5 MB, free: 1.078 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.915e-05/0.292, allocations: 4 kB / 436.5 MB, free: 1.074 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.292, allocations: 0 / 436.5 MB, free: 1.074 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000277/0.2923, allocations: 224.5 kB / 436.7 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008304/0.2931, allocations: 463.5 kB / 437.2 MB, free: 336 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003114/0.2934, allocations: 243 kB / 437.4 MB, free: 52 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002841/0.2937, allocations: 245.3 kB / 437.7 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.528e-06/0.2937, allocations: 0 / 437.7 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005474/0.2942, allocations: 391.1 kB / 438 MB, free: 15.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.252e-06/0.2942, allocations: 0 / 438 MB, free: 15.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.001232/0.2955, allocations: 0.9012 MB / 438.9 MB, free: 14.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001151/0.2956, allocations: 199.8 kB / 439.1 MB, free: 14.1 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006969/0.2963, allocations: 0.5601 MB / 439.7 MB, free: 13.53 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.868e-05/0.2963, allocations: 29.7 kB / 439.7 MB, free: 13.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.484e-05/0.2964, allocations: 121.1 kB / 439.9 MB, free: 13.37 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.01e-05/0.2965, allocations: 27.81 kB / 439.9 MB, free: 13.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001391/0.2966, allocations: 101.5 kB / 440 MB, free: 13.24 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001716/0.2968, allocations: 334.8 kB / 440.3 MB, free: 12.9 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00025/0.297, allocations: 232.4 kB / 440.5 MB, free: 12.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002634/0.2973, allocations: 242.3 kB / 440.8 MB, free: 12.37 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004855/0.2978, allocations: 446.5 kB / 441.2 MB, free: 11.87 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.2978, allocations: 4.109 kB / 441.2 MB, free: 11.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0008135/0.2986, allocations: 0.65 MB / 441.9 MB, free: 11.15 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001301/0.2987, allocations: 156.5 kB / 442 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.2987, allocations: 0 / 442 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.731e-05/0.2988, allocations: 4.031 kB / 442 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.5e-05/0.2988, allocations: 4 kB / 442 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.2988, allocations: 0 / 442 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001486/0.2989, allocations: 11.98 kB / 442 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001118/0.299, allocations: 101.2 kB / 442.1 MB, free: 10.85 MB / 350.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.0003969/0.2994, allocations: 400.1 kB / 442.5 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.416e-05/0.2995, allocations: 43.72 kB / 442.6 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001088/0.2996, allocations: 83.31 kB / 442.6 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-06/0.2996, allocations: 0 / 442.6 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.2996, allocations: 0 / 442.6 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.2996, allocations: 8 kB / 442.7 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001297/0.3009, allocations: 1.057 MB / 443.7 MB, free: 9.121 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.3009, allocations: 0 / 443.7 MB, free: 9.121 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.19e-06/0.3009, allocations: 0 / 443.7 MB, free: 9.121 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.039e-06/0.3009, allocations: 4 kB / 443.7 MB, free: 9.117 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.964e-05/0.301, allocations: 15.98 kB / 443.7 MB, free: 9.102 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.039e-06/0.301, allocations: 7.938 kB / 443.7 MB, free: 9.094 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.301, allocations: 0 / 443.7 MB, free: 9.094 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001077/0.3021, allocations: 0.8081 MB / 444.5 MB, free: 8.211 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004285/0.3025, allocations: 213.3 kB / 444.8 MB, free: 8.004 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.977e-05/0.3026, allocations: 15.94 kB / 444.8 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001511/0.3027, allocations: 20.11 kB / 444.8 MB, free: 7.969 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001634/0.3029, allocations: 63.94 kB / 444.9 MB, free: 7.906 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001219/0.303, allocations: 105.2 kB / 445 MB, free: 7.805 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005606/0.3035, allocations: 418.8 kB / 445.4 MB, free: 7.402 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3035, allocations: 0 / 445.4 MB, free: 7.402 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003202/0.3039, allocations: 52 kB / 445.4 MB, free: 7.352 MB / 350.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.001349/0.3052, allocations: 1.377 MB / 446.8 MB, free: 5.887 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008251/0.306, allocations: 0.7635 MB / 447.6 MB, free: 5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.306, allocations: 4.062 kB / 447.6 MB, free: 4.996 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004958/0.3065, allocations: 0.521 MB / 448.1 MB, free: 4.383 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000831/0.3074, allocations: 190 kB / 448.3 MB, free: 4.207 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005005/0.3124, allocations: 3.967 MB / 452.2 MB, free: 15.96 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003017/0.3127, allocations: 219.5 kB / 452.4 MB, free: 15.73 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.911e-05/0.3128, allocations: 8.969 kB / 452.5 MB, free: 15.72 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.674e-05/0.3128, allocations: 47.42 kB / 452.5 MB, free: 15.67 MB / 366.1 MB Notification: Performance of SimCode: time 7.62e-07/0.3128, allocations: 0 / 452.5 MB, free: 15.67 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05219/0.365, allocations: 10.49 MB / 463 MB, free: 5.23 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11/11.36, allocations: 11.56 kB / 463 MB, free: 5.223 MB / 366.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Digital_Examples_MUX2x1_fmu --startTime=0 --stopTime=15 --stepSize=0.00299162 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Digital_Examples_MUX2x1.fmu > Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.828180498006986]