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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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: translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1") translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0012/0.0012, allocations: 121.6 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001308/0.001308, allocations: 204.7 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.428/1.428, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001072/0.001072, allocations: 59.89 kB / 358.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2946/0.2957, allocations: 50.54 MB / 409.2 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.003423/0.2992, allocations: 1.579 MB / 410.8 MB, free: 20 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002158/0.3014, allocations: 0.8926 MB / 411.7 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.964e-05/0.3015, allocations: 0 / 411.7 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001006/0.3016, allocations: 11.86 kB / 411.7 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001053/0.3017, allocations: 27.8 kB / 411.7 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002872/0.302, allocations: 55.88 kB / 411.8 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000239/0.3023, allocations: 167.7 kB / 412 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001302/0.3024, allocations: 29.38 kB / 412 MB, free: 14.83 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006602/0.3031, allocations: 0.6317 MB / 412.6 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001701/0.3033, allocations: 87.62 kB / 412.7 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.669e-05/0.3033, allocations: 8 kB / 412.7 MB, free: 14.1 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.025e-05/0.3034, allocations: 12 kB / 412.7 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001079/0.3035, allocations: 71.7 kB / 412.8 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001449/0.3037, allocations: 135 kB / 412.9 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004465/0.3041, allocations: 454.4 kB / 413.4 MB, free: 13.44 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.3041, allocations: 4 kB / 413.4 MB, free: 13.43 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3041, allocations: 0 / 413.4 MB, free: 13.43 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.754e-05/0.3042, allocations: 0 / 413.4 MB, free: 13.43 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.0009594/0.3051, allocations: 0.8187 MB / 414.2 MB, free: 12.54 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.3052, allocations: 8.031 kB / 414.2 MB, free: 12.53 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.753e-05/0.3053, allocations: 48.45 kB / 414.3 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003138/0.3056, allocations: 286.2 kB / 414.5 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.111e-05/0.3056, allocations: 4.375 kB / 414.5 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.909e-05/0.3057, allocations: 16.38 kB / 414.6 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003619/0.306, allocations: 169.8 kB / 414.7 MB, free: 11.97 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.746e-06/0.306, allocations: 3.938 kB / 414.7 MB, free: 11.97 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.127e-05/0.3061, allocations: 12 kB / 414.7 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.3061, allocations: 7.984 kB / 414.7 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001912/0.3063, allocations: 83.95 kB / 414.8 MB, free: 11.87 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007779/0.3071, allocations: 0.5003 MB / 415.3 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002262/0.3073, allocations: 122.5 kB / 415.4 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001768/0.3075, allocations: 104.9 kB / 415.6 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.326e-05/0.3075, allocations: 0 / 415.6 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003955/0.3079, allocations: 250.6 kB / 415.8 MB, free: 10.81 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.573e-06/0.3079, allocations: 0 / 415.8 MB, free: 10.81 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009793/0.3089, allocations: 0.6182 MB / 416.4 MB, free: 10.16 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001187/0.3091, allocations: 195.9 kB / 416.6 MB, free: 9.926 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007333/0.3098, allocations: 0.5562 MB / 417.2 MB, free: 9.352 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.597e-05/0.3098, allocations: 37.7 kB / 417.2 MB, free: 9.309 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.918e-05/0.31, allocations: 121 kB / 417.3 MB, free: 9.188 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.187e-05/0.31, allocations: 27.7 kB / 417.3 MB, free: 9.16 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001712/0.3102, allocations: 97.41 kB / 417.4 MB, free: 9.059 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002002/0.3104, allocations: 326.8 kB / 417.8 MB, free: 8.73 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001771/0.3106, allocations: 87.95 kB / 417.8 MB, free: 8.645 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001754/0.3108, allocations: 93.78 kB / 417.9 MB, free: 8.547 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004733/0.3113, allocations: 446.5 kB / 418.4 MB, free: 8.043 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.3113, allocations: 4 kB / 418.4 MB, free: 8.039 MB / 334.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007349/0.312, allocations: 0.5009 MB / 418.9 MB, free: 7.504 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001079/0.3121, allocations: 148.5 kB / 419 MB, free: 7.328 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.3121, allocations: 0 / 419 MB, free: 7.328 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.896e-05/0.3122, allocations: 3.984 kB / 419 MB, free: 7.324 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.051e-05/0.3122, allocations: 7.938 kB / 419 MB, free: 7.316 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.3122, allocations: 64 / 419 MB, free: 7.316 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001593/0.3124, allocations: 23.91 kB / 419.1 MB, free: 7.293 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001073/0.3125, allocations: 93.3 kB / 419.1 MB, free: 7.203 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.000375/0.3129, allocations: 412 kB / 419.5 MB, free: 6.762 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.691e-05/0.3129, allocations: 43.53 kB / 419.6 MB, free: 6.719 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.623e-05/0.313, allocations: 67.42 kB / 419.7 MB, free: 6.656 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.3131, allocations: 4 kB / 419.7 MB, free: 6.652 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.3131, allocations: 0 / 419.7 MB, free: 6.652 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.3131, allocations: 0 / 419.7 MB, free: 6.652 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001107/0.3142, allocations: 0.9556 MB / 420.6 MB, free: 5.609 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.684e-06/0.3142, allocations: 0 / 420.6 MB, free: 5.609 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.079e-06/0.3142, allocations: 4 kB / 420.6 MB, free: 5.605 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.3142, allocations: 4 kB / 420.6 MB, free: 5.602 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.856e-05/0.3143, allocations: 15.98 kB / 420.6 MB, free: 5.586 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.3143, allocations: 7.938 kB / 420.6 MB, free: 5.578 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.3143, allocations: 3.938 kB / 420.7 MB, free: 5.574 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007737/0.3151, allocations: 0.6673 MB / 421.3 MB, free: 4.859 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002928/0.3154, allocations: 252.4 kB / 421.6 MB, free: 4.594 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.713e-05/0.3154, allocations: 12 kB / 421.6 MB, free: 4.582 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001395/0.3156, allocations: 19.98 kB / 421.6 MB, free: 4.562 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001758/0.3158, allocations: 55.88 kB / 421.7 MB, free: 4.508 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.39e-05/0.3159, allocations: 109.2 kB / 421.8 MB, free: 4.402 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004629/0.3163, allocations: 418.8 kB / 422.2 MB, free: 3.996 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3163, allocations: 0 / 422.2 MB, free: 3.996 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003073/0.3167, allocations: 55.94 kB / 422.2 MB, free: 3.941 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.0001501/0.3168, allocations: 123.2 kB / 422.3 MB, free: 3.812 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006107/0.3174, allocations: 0.5321 MB / 422.9 MB, free: 3.219 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3174, allocations: 0 / 422.9 MB, free: 3.219 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003865/0.3178, allocations: 468.9 kB / 423.3 MB, free: 2.699 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007949/0.3186, allocations: 190.4 kB / 423.5 MB, free: 2.531 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001265/0.3199, allocations: 0.7485 MB / 424.3 MB, free: 1.758 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005101/0.3204, allocations: 0.8183 MB / 425.1 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.709e-05/0.3205, allocations: 8.875 kB / 425.1 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.113e-05/0.3206, allocations: 19.44 kB / 425.1 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3206, allocations: 0 / 425.1 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of Templates: time 0.01227/0.3329, allocations: 7.431 MB / 432.5 MB, free: 9.324 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.makefile (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 & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) Reference file matches