Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1") translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001/0.001, allocations: 176.1 kB / 8.478 MB, free: 1.891 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.176/1.176, allocations: 205.2 MB / 214.1 MB, free: 1.809 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008627/0.0008626, allocations: 71.45 kB / 262.1 MB, free: 1.766 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.653e-06/6.833e-06, allocations: 0 / 315 MB, free: 23.02 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07656/0.07658, allocations: 47.58 MB / 362.5 MB, free: 7.379 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2215/0.2981, allocations: 81.36 MB / 443.9 MB, free: 14.07 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001994/0.2984, allocations: 67.52 kB / 444 MB, free: 14.03 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.04914/0.3475, allocations: 27.05 MB / 471 MB, free: 8.461 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.382e-05/0.3476, allocations: 4 kB / 471 MB, free: 8.457 MB / 346.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.0005973/0.3482, allocations: 0.6842 MB / 471.7 MB, free: 7.723 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.643e-05/0.3482, allocations: 8.031 kB / 471.7 MB, free: 7.715 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.363e-05/0.3483, allocations: 43.53 kB / 471.8 MB, free: 7.672 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000364/0.3487, allocations: 271.7 kB / 472 MB, free: 7.375 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.105e-05/0.3487, allocations: 8 kB / 472 MB, free: 7.367 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.029e-05/0.3488, allocations: 16.03 kB / 472 MB, free: 7.355 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001628/0.3489, allocations: 73.28 kB / 472.1 MB, free: 7.301 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002438/0.3492, allocations: 162.9 kB / 472.3 MB, free: 7.16 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.3492, allocations: 0 / 472.3 MB, free: 7.16 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.105e-05/0.3492, allocations: 4 kB / 472.3 MB, free: 7.156 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.3493, allocations: 0 / 472.3 MB, free: 7.156 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007489/0.35, allocations: 494.7 kB / 472.8 MB, free: 6.699 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001631/0.3502, allocations: 120.5 kB / 472.9 MB, free: 6.605 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001311/0.3503, allocations: 103.9 kB / 473 MB, free: 6.535 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.265e-05/0.3503, allocations: 3.938 kB / 473 MB, free: 6.531 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002286/0.3506, allocations: 227.8 kB / 473.2 MB, free: 6.312 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 1.222e-06/0.3506, allocations: 0 / 473.2 MB, free: 6.312 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004541/0.3511, allocations: 249.1 kB / 473.5 MB, free: 6.098 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.014e-05/0.3511, allocations: 195.5 kB / 473.6 MB, free: 5.867 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005059/0.3517, allocations: 489.7 kB / 474.1 MB, free: 5.461 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.206e-05/0.3517, allocations: 29.7 kB / 474.2 MB, free: 5.426 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.147e-05/0.3517, allocations: 96.44 kB / 474.2 MB, free: 5.336 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.556e-05/0.3518, allocations: 39.25 kB / 474.3 MB, free: 5.301 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.187e-05/0.3518, allocations: 4 kB / 474.3 MB, free: 5.297 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.577e-05/0.3519, allocations: 325.6 kB / 474.6 MB, free: 4.977 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000117/0.352, allocations: 79.97 kB / 474.7 MB, free: 4.922 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001076/0.3522, allocations: 77.97 kB / 474.8 MB, free: 4.867 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001015/0.3523, allocations: 57.72 kB / 474.8 MB, free: 4.824 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3523, allocations: 0 / 474.8 MB, free: 4.824 MB / 346.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003446/0.3526, allocations: 230 kB / 475 MB, free: 4.633 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.312e-05/0.3527, allocations: 7.938 kB / 475 MB, free: 4.625 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.3527, allocations: 112 / 475 MB, free: 4.625 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.256e-05/0.3527, allocations: 3.938 kB / 475.1 MB, free: 4.621 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.062e-05/0.3527, allocations: 7.984 kB / 475.1 MB, free: 4.613 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.268e-06/0.3527, allocations: 0 / 475.1 MB, free: 4.613 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001637/0.3529, allocations: 19.91 kB / 475.1 MB, free: 4.594 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001123/0.353, allocations: 93.3 kB / 475.2 MB, free: 4.5 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition1,$whenCondition2,Mux2x1.sel,Mux2x1.nextstate,Mux2x1.yy,$PRE.Mux2x1.inertialDelaySensitive.x,Mux2x1.inertialDelaySensitive.x,$PRE.Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.y_old,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.t_next,Input1.y,Input0.y) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002141/0.3532, allocations: 267.6 kB / 475.4 MB, free: 4.207 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.052e-05/0.3533, allocations: 47.44 kB / 475.5 MB, free: 4.16 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001109/0.3534, allocations: 65.58 kB / 475.5 MB, free: 4.105 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.3534, allocations: 0 / 475.5 MB, free: 4.105 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.3534, allocations: 64 / 475.5 MB, free: 4.105 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.3534, allocations: 4 kB / 475.5 MB, free: 4.102 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006658/0.3541, allocations: 0.6541 MB / 476.2 MB, free: 3.5 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.3541, allocations: 0 / 476.2 MB, free: 3.5 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.539e-06/0.3541, allocations: 0 / 476.2 MB, free: 3.5 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.3541, allocations: 4 kB / 476.2 MB, free: 3.496 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.624e-05/0.3542, allocations: 15.98 kB / 476.2 MB, free: 3.48 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/0.3542, allocations: 4 kB / 476.2 MB, free: 3.477 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.3542, allocations: 0 / 476.2 MB, free: 3.477 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003998/0.3546, allocations: 377.4 kB / 476.6 MB, free: 3.141 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003354/0.355, allocations: 267.3 kB / 476.9 MB, free: 2.902 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.091e-05/0.355, allocations: 9.75 kB / 476.9 MB, free: 2.895 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001711/0.3552, allocations: 15.98 kB / 476.9 MB, free: 2.879 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001555/0.3554, allocations: 59.86 kB / 476.9 MB, free: 2.832 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.349e-05/0.3555, allocations: 102.7 kB / 477 MB, free: 2.734 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0004558/0.3559, allocations: 401 kB / 477.4 MB, free: 2.41 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002996/0.3563, allocations: 40 kB / 477.5 MB, free: 2.371 MB / 346.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.sel,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,Input0.y) * Number of discrete states: 14 (Input1.y,Mux2x1.sel,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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001453/0.3564, allocations: 122.7 kB / 477.6 MB, free: 2.246 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003685/0.3568, allocations: 325.7 kB / 477.9 MB, free: 1.961 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3568, allocations: 4 kB / 477.9 MB, free: 1.957 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002514/0.357, allocations: 322.1 kB / 478.2 MB, free: 1.695 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006557/0.3577, allocations: 148.6 kB / 478.4 MB, free: 1.566 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009788/0.3587, allocations: 0.5997 MB / 479 MB, free: 1.004 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004255/0.3591, allocations: 0.8339 MB / 479.8 MB, free: 160 kB / 346.7 MB Notification: Performance of SimCode: time 2.71e-07/0.3591, allocations: 0 / 479.8 MB, free: 160 kB / 346.7 MB Notification: Performance of Templates: time 0.008516/0.3677, allocations: 6.274 MB / 486.1 MB, free: 9.723 MB / 362.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches