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.002328/0.002328, allocations: 95.61 kB / 20.96 MB, free: 3.461 MB / 18.57 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.002728/0.002728, allocations: 165.3 kB / 24.27 MB, free: 152 kB / 18.57 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.644/1.644, allocations: 177.1 MB / 204.6 MB, free: 5.586 MB / 186.7 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: translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1") translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.462e-06/1.462e-06, allocations: 0 / 272.3 MB, free: 1.824 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.09e-05/3.236e-05, allocations: 2.312 kB / 272.3 MB, free: 1.82 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.003099/0.003132, allocations: 1.551 MB / 273.9 MB, free: 268 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002205/0.005336, allocations: 0.8693 MB / 274.7 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.492e-05/0.005401, allocations: 0 / 274.7 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001044/0.005506, allocations: 7.875 kB / 274.7 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 9.673e-05/0.005603, allocations: 27.8 kB / 274.8 MB, free: 15.35 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002655/0.005868, allocations: 55.86 kB / 274.8 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002461/0.006114, allocations: 159.6 kB / 275 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001011/0.006215, allocations: 21.53 kB / 275 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008596/0.007075, allocations: 0.659 MB / 275.7 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001645/0.007239, allocations: 79.73 kB / 275.7 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.77e-05/0.007317, allocations: 12 kB / 275.7 MB, free: 14.37 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.932e-05/0.007376, allocations: 8 kB / 275.8 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001137/0.00749, allocations: 75.7 kB / 275.8 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001192/0.007609, allocations: 67.67 kB / 275.9 MB, free: 14.22 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005466/0.008156, allocations: 458.5 kB / 276.3 MB, free: 13.77 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.00816, allocations: 3.938 kB / 276.3 MB, free: 13.77 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.92e-07/0.00816, allocations: 0 / 276.3 MB, free: 13.77 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.63e-06/0.008166, allocations: 0 / 276.3 MB, free: 13.77 MB / 266.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.00116/0.009326, allocations: 0.8967 MB / 277.2 MB, free: 12.8 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.419e-05/0.00936, allocations: 12.03 kB / 277.3 MB, free: 12.79 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001204/0.009481, allocations: 56.66 kB / 277.3 MB, free: 12.73 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003818/0.009862, allocations: 242.8 kB / 277.5 MB, free: 12.47 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.112e-05/0.009884, allocations: 4.375 kB / 277.6 MB, free: 12.46 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.264e-05/0.009916, allocations: 8.375 kB / 277.6 MB, free: 12.46 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005006/0.01042, allocations: 322.6 kB / 277.9 MB, free: 12.11 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.01043, allocations: 192 / 277.9 MB, free: 12.11 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.014e-05/0.01046, allocations: 8.359 kB / 277.9 MB, free: 12.1 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.002e-05/0.01047, allocations: 7.938 kB / 277.9 MB, free: 12.09 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003089/0.01078, allocations: 232.4 kB / 278.1 MB, free: 11.83 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001333/0.01211, allocations: 0.5931 MB / 278.7 MB, free: 11.2 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000365/0.01247, allocations: 263.5 kB / 279 MB, free: 10.9 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003033/0.01278, allocations: 252.1 kB / 279.2 MB, free: 10.62 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.175e-05/0.01279, allocations: 0 / 279.2 MB, free: 10.62 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005284/0.01332, allocations: 404.8 kB / 279.6 MB, free: 10.17 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 1.493e-06/0.01332, allocations: 3.938 kB / 279.6 MB, free: 10.16 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.001494/0.01481, allocations: 0.9364 MB / 280.6 MB, free: 9.129 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001718/0.01498, allocations: 199.9 kB / 280.7 MB, free: 8.891 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001108/0.01609, allocations: 0.7443 MB / 281.5 MB, free: 8.133 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.839e-05/0.01614, allocations: 33.7 kB / 281.5 MB, free: 8.094 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001366/0.01628, allocations: 167.8 kB / 281.7 MB, free: 7.922 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.439e-05/0.01634, allocations: 47.81 kB / 281.7 MB, free: 7.875 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001695/0.01651, allocations: 107.2 kB / 281.8 MB, free: 7.762 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002903/0.0168, allocations: 0.5118 MB / 282.4 MB, free: 7.238 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002838/0.01709, allocations: 228.5 kB / 282.6 MB, free: 6.984 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003114/0.0174, allocations: 259.8 kB / 282.8 MB, free: 6.691 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005539/0.01795, allocations: 456.1 kB / 283.3 MB, free: 6.18 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.981e-06/0.01796, allocations: 4 kB / 283.3 MB, free: 6.176 MB / 266.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.001014/0.01897, allocations: 0.6703 MB / 283.9 MB, free: 5.438 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000159/0.01913, allocations: 156.5 kB / 284.1 MB, free: 5.254 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.01914, allocations: 0 / 284.1 MB, free: 5.254 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.838e-05/0.01916, allocations: 0 / 284.1 MB, free: 5.254 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.413e-05/0.01919, allocations: 8.062 kB / 284.1 MB, free: 5.246 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.0192, allocations: 0 / 284.1 MB, free: 5.246 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001666/0.01936, allocations: 15.98 kB / 284.1 MB, free: 5.23 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001376/0.0195, allocations: 101.4 kB / 284.2 MB, free: 5.133 MB / 266.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.0004815/0.01998, allocations: 430.9 kB / 284.6 MB, free: 4.672 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000112/0.0201, allocations: 63.64 kB / 284.7 MB, free: 4.609 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001196/0.02022, allocations: 63.44 kB / 284.8 MB, free: 4.547 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.02022, allocations: 0 / 284.8 MB, free: 4.547 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.02022, allocations: 0 / 284.8 MB, free: 4.547 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.02023, allocations: 4 kB / 284.8 MB, free: 4.543 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001903/0.02213, allocations: 1.213 MB / 286 MB, free: 3.23 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.02213, allocations: 0 / 286 MB, free: 3.23 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.6e-06/0.02214, allocations: 0 / 286 MB, free: 3.23 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.644e-06/0.02214, allocations: 7.984 kB / 286 MB, free: 3.223 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.155e-05/0.02219, allocations: 20 kB / 286 MB, free: 3.203 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.02219, allocations: 3.984 kB / 286 MB, free: 3.199 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.02219, allocations: 0 / 286 MB, free: 3.199 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001131/0.02332, allocations: 0.9028 MB / 286.9 MB, free: 2.215 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004302/0.02375, allocations: 197.3 kB / 287.1 MB, free: 2.02 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.801e-05/0.02382, allocations: 12 kB / 287.1 MB, free: 2.008 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001487/0.02397, allocations: 19.92 kB / 287.1 MB, free: 1.988 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001892/0.02416, allocations: 71.91 kB / 287.2 MB, free: 1.918 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001215/0.02428, allocations: 101.4 kB / 287.3 MB, free: 1.816 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0006762/0.02495, allocations: 478.7 kB / 287.8 MB, free: 1.355 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02496, allocations: 0 / 287.8 MB, free: 1.355 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000313/0.02527, allocations: 56 kB / 287.8 MB, free: 1.301 MB / 266.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.0001673/0.02544, allocations: 119.3 kB / 287.9 MB, free: 1.172 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009473/0.02638, allocations: 0.8062 MB / 288.8 MB, free: 244 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.02638, allocations: 3.938 kB / 288.8 MB, free: 240 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005916/0.02698, allocations: 0.5597 MB / 289.3 MB, free: 15.58 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008671/0.02784, allocations: 199.8 kB / 289.5 MB, free: 15.39 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001438/0.02928, allocations: 0.8911 MB / 290.4 MB, free: 14.45 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002813/0.02956, allocations: 199.6 kB / 290.6 MB, free: 14.23 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.568e-05/0.02963, allocations: 20.92 kB / 290.6 MB, free: 14.2 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.33e-05/0.02966, allocations: 16.5 kB / 290.6 MB, free: 14.19 MB / 282.7 MB Notification: Performance of SimCode: time 4.81e-07/0.02966, allocations: 0 / 290.6 MB, free: 14.19 MB / 282.7 MB Notification: Performance of Templates: time 0.01908/0.04874, allocations: 8.006 MB / 298.6 MB, free: 6.125 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.makefile [Timeout 660] (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 & ./Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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_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: 4.810055330046453]