Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Digital.Examples.MUX2x1") translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Digital.Examples.MUX2x1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001633/0.001633, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00177/0.00177, allocations: 193.3 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.083/2.083, allocations: 205.1 MB / 222.4 MB, free: 4.562 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001571/0.001572, allocations: 51.92 kB / 278.7 MB, free: 12.38 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4151/0.4167, allocations: 46.64 MB / 325.3 MB, free: 1.844 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.0048/0.4216, allocations: 1.555 MB / 326.9 MB, free: 0.6055 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.002418/0.4241, allocations: 0.9025 MB / 327.8 MB, free: 15.91 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001362/0.4242, allocations: 1.125 kB / 327.8 MB, free: 15.91 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001415/0.4244, allocations: 12.83 kB / 327.8 MB, free: 15.9 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001502/0.4246, allocations: 22.05 kB / 327.8 MB, free: 15.89 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004589/0.4251, allocations: 55.66 kB / 327.9 MB, free: 15.84 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003825/0.4255, allocations: 174.9 kB / 328 MB, free: 15.74 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001501/0.4256, allocations: 25.17 kB / 328 MB, free: 15.73 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001069/0.4267, allocations: 0.6269 MB / 328.7 MB, free: 15.49 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002406/0.427, allocations: 77.3 kB / 328.8 MB, free: 15.45 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 8.667e-05/0.4271, allocations: 11.84 kB / 328.8 MB, free: 15.45 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.129e-05/0.4271, allocations: 11.78 kB / 328.8 MB, free: 15.45 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001467/0.4273, allocations: 73.56 kB / 328.8 MB, free: 15.41 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002129/0.4275, allocations: 132 kB / 329 MB, free: 15.3 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006944/0.4282, allocations: 453.1 kB / 329.4 MB, free: 14.96 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.584e-06/0.4282, allocations: 1.062 kB / 329.4 MB, free: 14.96 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.255e-06/0.4282, allocations: 0 / 329.4 MB, free: 14.96 MB / 270.1 MB Notification: Performance of Transformations before backend: time 2.606e-05/0.4283, allocations: 0 / 329.4 MB, free: 14.96 MB / 270.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.001747/0.43, allocations: 0.8154 MB / 330.2 MB, free: 14.19 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.536e-05/0.4301, allocations: 8.938 kB / 330.2 MB, free: 14.19 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001937/0.4303, allocations: 46.22 kB / 330.3 MB, free: 14.16 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006355/0.4309, allocations: 290.8 kB / 330.6 MB, free: 13.88 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.211e-05/0.431, allocations: 17.77 kB / 330.6 MB, free: 13.87 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.722e-05/0.4311, allocations: 9.781 kB / 330.6 MB, free: 13.87 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000588/0.4317, allocations: 164.9 kB / 330.8 MB, free: 13.78 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.694e-05/0.4317, allocations: 3.984 kB / 330.8 MB, free: 13.77 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.829e-05/0.4318, allocations: 12.94 kB / 330.8 MB, free: 13.77 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.082e-05/0.4318, allocations: 1.031 kB / 330.8 MB, free: 13.77 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002676/0.4321, allocations: 82.92 kB / 330.9 MB, free: 13.73 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001523/0.4336, allocations: 0.501 MB / 331.4 MB, free: 13.3 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003402/0.434, allocations: 132.2 kB / 331.5 MB, free: 13.22 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002741/0.4343, allocations: 107.3 kB / 331.6 MB, free: 13.17 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.478e-05/0.4343, allocations: 3.938 kB / 331.6 MB, free: 13.16 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006708/0.435, allocations: 248.4 kB / 331.8 MB, free: 12.97 MB / 270.1 MB Notification: Performance of pre-optimization done (n=14): time 4.458e-06/0.435, allocations: 0 / 331.8 MB, free: 12.97 MB / 270.1 MB Notification: Performance of matching and sorting (n=14): time 0.001599/0.4366, allocations: 0.6052 MB / 332.4 MB, free: 12.52 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002085/0.4369, allocations: 196 kB / 332.6 MB, free: 12.28 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001123/0.438, allocations: 0.5679 MB / 333.2 MB, free: 11.71 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.225e-05/0.438, allocations: 37.64 kB / 333.2 MB, free: 11.66 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.911e-05/0.4382, allocations: 113 kB / 333.4 MB, free: 11.55 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.68e-05/0.4382, allocations: 27.7 kB / 333.4 MB, free: 11.52 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002082/0.4384, allocations: 101.4 kB / 333.5 MB, free: 11.42 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001852/0.4386, allocations: 330.8 kB / 333.8 MB, free: 11.09 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002236/0.4389, allocations: 83.95 kB / 333.9 MB, free: 11 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001812/0.4391, allocations: 97.67 kB / 334 MB, free: 10.9 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004707/0.4395, allocations: 442.7 kB / 334.4 MB, free: 10.4 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.4395, allocations: 0 / 334.4 MB, free: 10.4 MB / 270.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000829/0.4404, allocations: 0.498 MB / 334.9 MB, free: 9.867 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001413/0.4405, allocations: 148.5 kB / 335.1 MB, free: 9.691 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.836e-06/0.4406, allocations: 3.938 kB / 335.1 MB, free: 9.688 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.057e-05/0.4406, allocations: 4 kB / 335.1 MB, free: 9.684 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.844e-05/0.4406, allocations: 0 / 335.1 MB, free: 9.684 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.456e-06/0.4406, allocations: 4.016 kB / 335.1 MB, free: 9.68 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000268/0.4409, allocations: 23.97 kB / 335.1 MB, free: 9.656 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002304/0.4411, allocations: 105.2 kB / 335.2 MB, free: 9.551 MB / 270.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.0007872/0.4419, allocations: 396 kB / 335.6 MB, free: 9.121 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001518/0.4421, allocations: 47.52 kB / 335.6 MB, free: 9.074 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002639/0.4424, allocations: 71.47 kB / 335.7 MB, free: 9 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.4424, allocations: 0 / 335.7 MB, free: 9 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.227e-06/0.4424, allocations: 3.938 kB / 335.7 MB, free: 8.996 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.464e-06/0.4424, allocations: 0 / 335.7 MB, free: 8.996 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001643/0.4441, allocations: 0.9677 MB / 336.7 MB, free: 7.941 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-06/0.4441, allocations: 0 / 336.7 MB, free: 7.941 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.498e-06/0.4441, allocations: 4 kB / 336.7 MB, free: 7.938 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.4441, allocations: 0 / 336.7 MB, free: 7.938 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.949e-05/0.4442, allocations: 19.98 kB / 336.7 MB, free: 7.918 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.4442, allocations: 0 / 336.7 MB, free: 7.918 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.4442, allocations: 3.938 kB / 336.7 MB, free: 7.914 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009322/0.4451, allocations: 0.6673 MB / 337.4 MB, free: 7.199 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004116/0.4455, allocations: 264.3 kB / 337.6 MB, free: 6.922 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.786e-05/0.4456, allocations: 8 kB / 337.6 MB, free: 6.914 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001803/0.4458, allocations: 15.98 kB / 337.6 MB, free: 6.898 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002223/0.4461, allocations: 63.81 kB / 337.7 MB, free: 6.836 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001725/0.4462, allocations: 101.2 kB / 337.8 MB, free: 6.738 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0007898/0.447, allocations: 414.9 kB / 338.2 MB, free: 6.332 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.447, allocations: 0 / 338.2 MB, free: 6.332 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0004743/0.4475, allocations: 52 kB / 338.3 MB, free: 6.281 MB / 270.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.0002888/0.4478, allocations: 119.2 kB / 338.4 MB, free: 6.152 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0009838/0.4488, allocations: 0.54 MB / 338.9 MB, free: 5.551 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/0.4488, allocations: 0 / 338.9 MB, free: 5.551 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005375/0.4494, allocations: 465 kB / 339.4 MB, free: 5.035 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001122/0.4505, allocations: 181.8 kB / 339.5 MB, free: 4.859 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002021/0.4526, allocations: 0.7536 MB / 340.3 MB, free: 4.082 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007406/0.4533, allocations: 0.8182 MB / 341.1 MB, free: 3.234 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001183/0.4535, allocations: 12.88 kB / 341.1 MB, free: 3.223 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.244e-05/0.4535, allocations: 11.44 kB / 341.1 MB, free: 3.211 MB / 270.1 MB Notification: Performance of SimCode: time 1.392e-06/0.4535, allocations: 0 / 341.1 MB, free: 3.211 MB / 270.1 MB Notification: Performance of Templates: time 0.01603/0.4695, allocations: 7.443 MB / 348.6 MB, free: 11.6 MB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Digital.Examples.MUX2x1.makefile (rm -f Modelica_3.1_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Digital.Examples.MUX2x1.sim & ./Modelica_3.1_Modelica.Electrical.Digital.Examples.MUX2x1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1)