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.0008859/0.0008859, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008863/0.0008863, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.9183/0.9183, allocations: 177 MB / 204.1 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] 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 1.993e-06/1.993e-06, allocations: 0 / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.255e-05/2.455e-05, allocations: 3.266 kB / 324.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.003073/0.003098, allocations: 1.535 MB / 326 MB, free: 14.34 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002206/0.005304, allocations: 0.8381 MB / 326.9 MB, free: 13.49 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.487e-05/0.005379, allocations: 4 kB / 326.9 MB, free: 13.49 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001044/0.005483, allocations: 15.86 kB / 326.9 MB, free: 13.47 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.052e-05/0.005574, allocations: 27.78 kB / 326.9 MB, free: 13.45 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002838/0.005858, allocations: 59.81 kB / 327 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001876/0.006045, allocations: 155.6 kB / 327.1 MB, free: 13.23 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001079/0.006153, allocations: 21.58 kB / 327.2 MB, free: 13.21 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004834/0.006637, allocations: 0.659 MB / 327.8 MB, free: 12.55 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001144/0.006751, allocations: 75.8 kB / 327.9 MB, free: 12.47 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.562e-05/0.006787, allocations: 16 kB / 327.9 MB, free: 12.46 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.206e-05/0.006809, allocations: 12 kB / 327.9 MB, free: 12.45 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.488e-05/0.006884, allocations: 79.64 kB / 328 MB, free: 12.37 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.789e-05/0.006961, allocations: 59.73 kB / 328.1 MB, free: 12.31 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003304/0.007292, allocations: 462.4 kB / 328.5 MB, free: 11.86 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.007297, allocations: 0 / 328.5 MB, free: 11.86 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.007299, allocations: 0 / 328.5 MB, free: 11.86 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.662e-06/0.007305, allocations: 0 / 328.5 MB, free: 11.86 MB / 298.7 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.0006497/0.007955, allocations: 0.7463 MB / 329.3 MB, free: 11.05 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.232e-05/0.008008, allocations: 11.98 kB / 329.3 MB, free: 11.04 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.983e-05/0.008057, allocations: 42.75 kB / 329.3 MB, free: 10.98 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.87e-05/0.008126, allocations: 48.66 kB / 329.4 MB, free: 10.94 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002622/0.008388, allocations: 232 kB / 329.6 MB, free: 10.68 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.166e-05/0.00841, allocations: 16.31 kB / 329.6 MB, free: 10.67 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.131e-05/0.008431, allocations: 8.375 kB / 329.6 MB, free: 10.66 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003473/0.008779, allocations: 326.5 kB / 329.9 MB, free: 10.3 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.008786, allocations: 192 / 329.9 MB, free: 10.3 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.02e-05/0.008806, allocations: 8.125 kB / 329.9 MB, free: 10.3 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.008811, allocations: 0 / 329.9 MB, free: 10.3 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001569/0.008968, allocations: 232.5 kB / 330.2 MB, free: 10.04 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005213/0.009489, allocations: 467.5 kB / 330.6 MB, free: 9.539 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003295/0.009819, allocations: 243 kB / 330.9 MB, free: 9.262 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001441/0.009963, allocations: 237.4 kB / 331.1 MB, free: 8.996 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.728e-06/0.009972, allocations: 0 / 331.1 MB, free: 8.996 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003537/0.01033, allocations: 391.1 kB / 331.5 MB, free: 8.559 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 2.114e-06/0.01033, allocations: 3.938 kB / 331.5 MB, free: 8.555 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0007034/0.01103, allocations: 0.9119 MB / 332.4 MB, free: 7.547 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000201/0.01123, allocations: 195.9 kB / 332.6 MB, free: 7.312 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004531/0.01169, allocations: 0.5679 MB / 333.1 MB, free: 6.742 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.731e-05/0.01171, allocations: 29.7 kB / 333.2 MB, free: 6.707 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.082e-05/0.01177, allocations: 117.1 kB / 333.3 MB, free: 6.586 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.235e-05/0.01181, allocations: 35.73 kB / 333.3 MB, free: 6.551 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.76e-05/0.01189, allocations: 101.5 kB / 333.4 MB, free: 6.445 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.935e-05/0.01197, allocations: 334.8 kB / 333.8 MB, free: 6.109 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001525/0.01213, allocations: 236.5 kB / 334 MB, free: 5.848 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001415/0.01227, allocations: 245.1 kB / 334.2 MB, free: 5.574 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002547/0.01252, allocations: 446.6 kB / 334.7 MB, free: 5.07 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.01252, allocations: 4 kB / 334.7 MB, free: 5.066 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004506/0.01297, allocations: 0.6547 MB / 335.3 MB, free: 4.344 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000362/0.01334, allocations: 160.5 kB / 335.5 MB, free: 4.156 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.01334, allocations: 0 / 335.5 MB, free: 4.156 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.211e-05/0.01336, allocations: 112 / 335.5 MB, free: 4.156 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.107e-05/0.01338, allocations: 7.938 kB / 335.5 MB, free: 4.148 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.039e-06/0.01338, allocations: 0 / 335.5 MB, free: 4.148 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001236/0.01351, allocations: 15.98 kB / 335.5 MB, free: 4.133 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.885e-05/0.01357, allocations: 93.48 kB / 335.6 MB, free: 4.039 MB / 298.7 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.0002448/0.01382, allocations: 408.2 kB / 336 MB, free: 3.602 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.01e-05/0.01386, allocations: 47.72 kB / 336 MB, free: 3.555 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.728e-05/0.01393, allocations: 71.41 kB / 336.1 MB, free: 3.484 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.01393, allocations: 4 kB / 336.1 MB, free: 3.48 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.01393, allocations: 0 / 336.1 MB, free: 3.48 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.01394, allocations: 0 / 336.1 MB, free: 3.48 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007613/0.0147, allocations: 1.068 MB / 337.2 MB, free: 2.301 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.0147, allocations: 0 / 337.2 MB, free: 2.301 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.22e-06/0.0147, allocations: 0 / 337.2 MB, free: 2.301 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.0147, allocations: 3.938 kB / 337.2 MB, free: 2.297 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.304e-05/0.01473, allocations: 27.98 kB / 337.2 MB, free: 2.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.01473, allocations: 3.938 kB / 337.2 MB, free: 2.266 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.01473, allocations: 0 / 337.2 MB, free: 2.266 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005131/0.01524, allocations: 0.8243 MB / 338 MB, free: 1.363 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002335/0.01548, allocations: 213.3 kB / 338.2 MB, free: 1.156 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.783e-05/0.01551, allocations: 11.98 kB / 338.3 MB, free: 1.145 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.497e-05/0.0156, allocations: 16.12 kB / 338.3 MB, free: 1.129 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001041/0.0157, allocations: 59.92 kB / 338.3 MB, free: 1.07 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.005e-05/0.01576, allocations: 105.4 kB / 338.4 MB, free: 0.9688 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003124/0.01608, allocations: 422.8 kB / 338.8 MB, free: 0.5586 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01608, allocations: 0 / 338.8 MB, free: 0.5586 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001971/0.01627, allocations: 52 kB / 338.9 MB, free: 0.5078 MB / 298.7 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.0007451/0.01702, allocations: 1.38 MB / 340.3 MB, free: 15.04 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004553/0.01747, allocations: 0.7636 MB / 341 MB, free: 14.15 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.01748, allocations: 3.938 kB / 341 MB, free: 14.15 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002527/0.01773, allocations: 0.521 MB / 341.6 MB, free: 13.54 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004533/0.01818, allocations: 193.8 kB / 341.8 MB, free: 13.36 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002698/0.02088, allocations: 3.995 MB / 345.7 MB, free: 9.09 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001642/0.02104, allocations: 215.6 kB / 346 MB, free: 8.855 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 4.455e-05/0.02109, allocations: 16.94 kB / 346 MB, free: 8.836 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.866e-05/0.02114, allocations: 44.48 kB / 346 MB, free: 8.793 MB / 314.7 MB Notification: Performance of SimCode: time 5.21e-07/0.02114, allocations: 0 / 346 MB, free: 8.793 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02392/0.04506, allocations: 10.56 MB / 356.6 MB, free: 14.2 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.034/7.079, allocations: 3.609 kB / 356.6 MB, free: 14.2 MB / 330.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 8.83408946543932]