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.00142/0.00142, allocations: 92.31 kB / 20.96 MB, free: 3.473 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.0017/0.0017, allocations: 161.7 kB / 24.26 MB, free: 176 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.475/1.475, allocations: 177.2 MB / 204.6 MB, free: 5.578 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.673e-06/1.673e-06, allocations: 0 / 272.3 MB, free: 1.809 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.178e-05/3.345e-05, allocations: 2.312 kB / 272.3 MB, free: 1.805 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.003334/0.003367, allocations: 1.543 MB / 273.9 MB, free: 260 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002393/0.00576, allocations: 0.8419 MB / 274.7 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.982e-05/0.00584, allocations: 4 kB / 274.7 MB, free: 15.4 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001157/0.005956, allocations: 11.86 kB / 274.7 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001152/0.006071, allocations: 31.8 kB / 274.7 MB, free: 15.36 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003251/0.006396, allocations: 51.88 kB / 274.8 MB, free: 15.31 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003028/0.006699, allocations: 159.6 kB / 275 MB, free: 15.15 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001197/0.006818, allocations: 21.52 kB / 275 MB, free: 15.13 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009407/0.007759, allocations: 0.659 MB / 275.6 MB, free: 14.47 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001954/0.007955, allocations: 79.72 kB / 275.7 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.533e-05/0.00801, allocations: 8 kB / 275.7 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.025e-05/0.00805, allocations: 12 kB / 275.7 MB, free: 14.37 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001182/0.008168, allocations: 75.72 kB / 275.8 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001319/0.0083, allocations: 67.66 kB / 275.9 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006243/0.008925, allocations: 462.5 kB / 276.3 MB, free: 13.78 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.00893, allocations: 0 / 276.3 MB, free: 13.78 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.008931, allocations: 0 / 276.3 MB, free: 13.78 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.145e-05/0.008942, allocations: 0 / 276.3 MB, free: 13.78 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.001203/0.01015, allocations: 0.7385 MB / 277.1 MB, free: 12.98 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.01018, allocations: 12.03 kB / 277.1 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001645/0.01035, allocations: 56.66 kB / 277.1 MB, free: 12.91 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004155/0.01076, allocations: 243.9 kB / 277.4 MB, free: 12.64 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.72e-05/0.01079, allocations: 4.375 kB / 277.4 MB, free: 12.64 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.055e-05/0.01084, allocations: 12.38 kB / 277.4 MB, free: 12.63 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005732/0.01141, allocations: 318.5 kB / 277.7 MB, free: 12.28 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/0.01143, allocations: 4.188 kB / 277.7 MB, free: 12.28 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.468e-05/0.01146, allocations: 4.375 kB / 277.7 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.875e-06/0.01147, allocations: 7.875 kB / 277.7 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003625/0.01183, allocations: 236.5 kB / 277.9 MB, free: 12 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009204/0.01275, allocations: 420.2 kB / 278.4 MB, free: 11.56 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003563/0.01311, allocations: 243 kB / 278.6 MB, free: 11.29 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003061/0.01341, allocations: 237.3 kB / 278.8 MB, free: 11.02 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.564e-05/0.01343, allocations: 4 kB / 278.8 MB, free: 11.02 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005647/0.01399, allocations: 399 kB / 279.2 MB, free: 10.57 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 1.593e-06/0.01399, allocations: 0 / 279.2 MB, free: 10.57 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.001436/0.01543, allocations: 0.9283 MB / 280.1 MB, free: 9.547 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001669/0.0156, allocations: 195.9 kB / 280.3 MB, free: 9.312 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009709/0.01657, allocations: 0.5601 MB / 280.9 MB, free: 8.746 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.679e-05/0.01662, allocations: 29.7 kB / 280.9 MB, free: 8.711 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001081/0.01672, allocations: 117.1 kB / 281 MB, free: 8.59 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.921e-05/0.01679, allocations: 43.8 kB / 281.1 MB, free: 8.547 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001726/0.01697, allocations: 97.5 kB / 281.2 MB, free: 8.445 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001951/0.01716, allocations: 330.8 kB / 281.5 MB, free: 8.113 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003209/0.01748, allocations: 224.5 kB / 281.7 MB, free: 7.863 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003115/0.01779, allocations: 254.2 kB / 282 MB, free: 7.578 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005807/0.01837, allocations: 442.7 kB / 282.4 MB, free: 7.078 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.01838, allocations: 0 / 282.4 MB, free: 7.078 MB / 266.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.001085/0.01946, allocations: 0.6702 MB / 283.1 MB, free: 6.34 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001379/0.0196, allocations: 152.5 kB / 283.2 MB, free: 6.16 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/0.01961, allocations: 4 kB / 283.2 MB, free: 6.156 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.111e-05/0.01963, allocations: 0 / 283.2 MB, free: 6.156 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.564e-05/0.01966, allocations: 4.062 kB / 283.2 MB, free: 6.152 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.172e-06/0.01966, allocations: 0 / 283.2 MB, free: 6.152 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001972/0.01986, allocations: 16.03 kB / 283.2 MB, free: 6.137 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001765/0.02004, allocations: 109.4 kB / 283.3 MB, free: 6.031 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.0005187/0.02056, allocations: 408.2 kB / 283.7 MB, free: 5.594 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000111/0.02067, allocations: 59.66 kB / 283.8 MB, free: 5.535 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000124/0.02079, allocations: 67.42 kB / 283.9 MB, free: 5.469 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.02079, allocations: 3.984 kB / 283.9 MB, free: 5.465 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.0208, allocations: 0 / 283.9 MB, free: 5.465 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.0208, allocations: 0 / 283.9 MB, free: 5.465 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001598/0.0224, allocations: 1.038 MB / 284.9 MB, free: 4.328 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.0224, allocations: 0 / 284.9 MB, free: 4.328 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.771e-06/0.02241, allocations: 4 kB / 284.9 MB, free: 4.324 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.614e-06/0.02242, allocations: 4 kB / 284.9 MB, free: 4.32 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.574e-05/0.02246, allocations: 23.98 kB / 284.9 MB, free: 4.297 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.02246, allocations: 0 / 284.9 MB, free: 4.297 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.295e-06/0.02247, allocations: 0 / 284.9 MB, free: 4.297 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001182/0.02365, allocations: 0.8321 MB / 285.8 MB, free: 3.387 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004321/0.02408, allocations: 209.4 kB / 286 MB, free: 3.18 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.361e-05/0.02416, allocations: 15.94 kB / 286 MB, free: 3.164 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001826/0.02435, allocations: 12 kB / 286 MB, free: 3.152 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001756/0.02452, allocations: 55.92 kB / 286.1 MB, free: 3.098 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001366/0.02466, allocations: 109.4 kB / 286.2 MB, free: 2.988 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0006336/0.02529, allocations: 422.8 kB / 286.6 MB, free: 2.582 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.02529, allocations: 0 / 286.6 MB, free: 2.582 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000357/0.02565, allocations: 48 kB / 286.6 MB, free: 2.535 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.0001814/0.02583, allocations: 119.3 kB / 286.7 MB, free: 2.41 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009738/0.0268, allocations: 0.7635 MB / 287.5 MB, free: 1.523 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.02681, allocations: 0 / 287.5 MB, free: 1.523 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000578/0.02739, allocations: 0.5288 MB / 288 MB, free: 0.9023 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000912/0.0283, allocations: 214.7 kB / 288.2 MB, free: 0.7148 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001615/0.02991, allocations: 0.9246 MB / 289.2 MB, free: 15.73 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003421/0.03025, allocations: 207.6 kB / 289.4 MB, free: 15.51 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 9.263e-05/0.03035, allocations: 16.95 kB / 289.4 MB, free: 15.49 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.487e-05/0.03039, allocations: 20.48 kB / 289.4 MB, free: 15.47 MB / 282.7 MB Notification: Performance of SimCode: time 7.62e-07/0.03039, allocations: 0 / 289.4 MB, free: 15.47 MB / 282.7 MB Notification: Performance of Templates: time 0.01531/0.04571, allocations: 8.009 MB / 297.4 MB, free: 7.398 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) [Timeout 480] 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.470557195949368]