Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001818/0.001818, allocations: 112 kB / 20.43 MB, free: 1.465 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001516/0.001516, allocations: 186.9 kB / 23.71 MB, free: 4.719 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.505/1.505, allocations: 225.6 MB / 252.5 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001663/0.001663, allocations: 47.92 kB / 370.4 MB, free: 9.859 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2806/0.2823, allocations: 52.19 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002993/0.2853, allocations: 1.579 MB / 424.2 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002164/0.2875, allocations: 0.8732 MB / 425.1 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.361e-05/0.2875, allocations: 0 / 425.1 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.684e-05/0.2876, allocations: 15.86 kB / 425.1 MB, free: 12.12 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.073e-05/0.2877, allocations: 15.86 kB / 425.1 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004138/0.2881, allocations: 67.81 kB / 425.2 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002573/0.2884, allocations: 147.7 kB / 425.3 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001166/0.2885, allocations: 21.58 kB / 425.3 MB, free: 11.87 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007619/0.2893, allocations: 0.6395 MB / 426 MB, free: 11.23 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001712/0.2894, allocations: 91.67 kB / 426.1 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.74e-05/0.2895, allocations: 12 kB / 426.1 MB, free: 11.13 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.926e-05/0.2895, allocations: 12 kB / 426.1 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001104/0.2896, allocations: 75.62 kB / 426.2 MB, free: 11.04 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001449/0.2898, allocations: 131 kB / 426.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004842/0.2903, allocations: 454.5 kB / 426.7 MB, free: 10.47 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.2903, allocations: 0 / 426.7 MB, free: 10.47 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2903, allocations: 0 / 426.7 MB, free: 10.47 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.415e-05/0.2903, allocations: 0 / 426.7 MB, free: 10.47 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.0009181/0.2912, allocations: 0.754 MB / 427.5 MB, free: 9.656 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.988e-05/0.2912, allocations: 16.03 kB / 427.5 MB, free: 9.641 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.8e-05/0.2913, allocations: 42.73 kB / 427.6 MB, free: 9.59 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.932e-05/0.2914, allocations: 44.66 kB / 427.6 MB, free: 9.547 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004587/0.2918, allocations: 240.7 kB / 427.8 MB, free: 9.285 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.616e-05/0.2919, allocations: 8.375 kB / 427.8 MB, free: 9.277 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.625e-05/0.2919, allocations: 12.38 kB / 427.8 MB, free: 9.266 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003712/0.2923, allocations: 165.7 kB / 428 MB, free: 9.098 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.2923, allocations: 0 / 428 MB, free: 9.098 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.556e-05/0.2923, allocations: 7.938 kB / 428 MB, free: 9.09 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.2923, allocations: 4 kB / 428 MB, free: 9.086 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001763/0.2925, allocations: 87.89 kB / 428.1 MB, free: 9 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008151/0.2933, allocations: 471.5 kB / 428.6 MB, free: 8.496 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002201/0.2935, allocations: 102.5 kB / 428.7 MB, free: 8.387 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001771/0.2937, allocations: 84.88 kB / 428.8 MB, free: 8.301 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.273e-05/0.2937, allocations: 0 / 428.8 MB, free: 8.301 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006756/0.2944, allocations: 242.6 kB / 429 MB, free: 8.039 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.252e-06/0.2944, allocations: 0 / 429 MB, free: 8.039 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.001057/0.2954, allocations: 0.6227 MB / 429.6 MB, free: 7.379 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001406/0.2956, allocations: 195.9 kB / 429.8 MB, free: 7.145 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007165/0.2963, allocations: 0.5601 MB / 430.4 MB, free: 6.574 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.556e-05/0.2963, allocations: 29.7 kB / 430.4 MB, free: 6.539 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002069/0.2965, allocations: 113.1 kB / 430.5 MB, free: 6.422 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.807e-05/0.2966, allocations: 35.8 kB / 430.5 MB, free: 6.387 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001363/0.2967, allocations: 97.66 kB / 430.6 MB, free: 6.285 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001745/0.2969, allocations: 338.7 kB / 431 MB, free: 5.945 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001579/0.2971, allocations: 75.97 kB / 431 MB, free: 5.871 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001767/0.2972, allocations: 101.8 kB / 431.1 MB, free: 5.766 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000475/0.2977, allocations: 434.5 kB / 431.6 MB, free: 5.273 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.2977, allocations: 4 kB / 431.6 MB, free: 5.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007225/0.2984, allocations: 0.5054 MB / 432.1 MB, free: 4.73 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001275/0.2986, allocations: 148.5 kB / 432.2 MB, free: 4.555 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.2986, allocations: 0 / 432.2 MB, free: 4.555 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.946e-05/0.2986, allocations: 3.984 kB / 432.2 MB, free: 4.551 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.157e-05/0.2986, allocations: 7.984 kB / 432.2 MB, free: 4.543 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.494e-05/0.2986, allocations: 0 / 432.2 MB, free: 4.543 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002508/0.2989, allocations: 16 kB / 432.2 MB, free: 4.527 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001161/0.299, allocations: 109.1 kB / 432.3 MB, free: 4.422 MB / 334.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.0004098/0.2994, allocations: 408.2 kB / 432.7 MB, free: 3.984 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.982e-05/0.2995, allocations: 43.72 kB / 432.8 MB, free: 3.941 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001089/0.2996, allocations: 67.42 kB / 432.9 MB, free: 3.879 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.2996, allocations: 0 / 432.9 MB, free: 3.879 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.2996, allocations: 4 kB / 432.9 MB, free: 3.875 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.2996, allocations: 0 / 432.9 MB, free: 3.875 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001218/0.3008, allocations: 0.9351 MB / 433.8 MB, free: 2.859 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.3008, allocations: 0 / 433.8 MB, free: 2.859 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.23e-06/0.3008, allocations: 0 / 433.8 MB, free: 2.859 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.3008, allocations: 8 kB / 433.8 MB, free: 2.852 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001209/0.3009, allocations: 19.98 kB / 433.8 MB, free: 2.832 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.898e-05/0.301, allocations: 7.938 kB / 433.8 MB, free: 2.824 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.301, allocations: 3.938 kB / 433.8 MB, free: 2.82 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008661/0.3018, allocations: 0.6665 MB / 434.5 MB, free: 2.109 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004282/0.3023, allocations: 213.4 kB / 434.7 MB, free: 1.902 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.703e-05/0.3023, allocations: 12 kB / 434.7 MB, free: 1.891 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001476/0.3025, allocations: 15.92 kB / 434.7 MB, free: 1.875 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001638/0.3026, allocations: 55.94 kB / 434.8 MB, free: 1.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000107/0.3027, allocations: 105.2 kB / 434.9 MB, free: 1.719 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006326/0.3034, allocations: 418.8 kB / 435.3 MB, free: 1.312 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3034, allocations: 0 / 435.3 MB, free: 1.312 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003049/0.3037, allocations: 48 kB / 435.4 MB, free: 1.266 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.001298/0.305, allocations: 1.22 MB / 436.6 MB, free: 15.99 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007552/0.3057, allocations: 484.8 kB / 437 MB, free: 15.45 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.3057, allocations: 0 / 437 MB, free: 15.45 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000384/0.3061, allocations: 381 kB / 437.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008407/0.307, allocations: 202.5 kB / 437.6 MB, free: 14.84 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004432/0.3114, allocations: 3.227 MB / 440.8 MB, free: 11.49 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006526/0.312, allocations: 0.8143 MB / 441.7 MB, free: 10.65 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.6e-05/0.3121, allocations: 20.94 kB / 441.7 MB, free: 10.62 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.115e-05/0.3122, allocations: 47.42 kB / 441.7 MB, free: 10.58 MB / 350.1 MB Notification: Performance of SimCode: time 1.183e-06/0.3122, allocations: 0 / 441.7 MB, free: 10.58 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04183/0.354, allocations: 9.413 MB / 451.1 MB, free: 1.168 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/11.72, allocations: 3.234 kB / 451.1 MB, free: 1.168 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_MUX2x1_fmu --startTime=0 --stopTime=15 --stepSize=0.00299162 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_MUX2x1.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_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_4.0.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: 14.222483463119715]