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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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") [: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 trunk/package.mo): time 0.001125/0.001125, allocations: 200.1 kB / 8.541 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.244/1.244, allocations: 225.5 MB / 234.4 MB, free: 3.371 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008465/0.0008465, allocations: 87.38 kB / 286.3 MB, free: 5.258 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 8.546e-06/8.676e-06, allocations: 0 / 343.1 MB, free: 8.727 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09462/0.09464, allocations: 51.48 MB / 394.6 MB, free: 5.195 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2326/0.3273, allocations: 82.78 MB / 477.4 MB, free: 9.898 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001793/0.3275, allocations: 67.17 kB / 477.5 MB, free: 9.871 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.04827/0.3758, allocations: 27.47 MB / 0.4931 GB, free: 4.504 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.28e-05/0.3758, allocations: 4 kB / 0.4931 GB, free: 4.5 MB / 362.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.0006493/0.3765, allocations: 0.6848 MB / 0.4938 GB, free: 3.773 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.385e-05/0.3765, allocations: 8.031 kB / 0.4938 GB, free: 3.766 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.235e-05/0.3766, allocations: 39.53 kB / 0.4938 GB, free: 3.727 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000351/0.377, allocations: 274.2 kB / 0.4941 GB, free: 3.43 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.395e-05/0.377, allocations: 12.72 kB / 0.4941 GB, free: 3.418 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.39e-05/0.377, allocations: 8 kB / 0.4941 GB, free: 3.41 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001619/0.3772, allocations: 80.78 kB / 0.4942 GB, free: 3.352 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002572/0.3775, allocations: 156.2 kB / 0.4943 GB, free: 3.215 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.328e-06/0.3775, allocations: 0 / 0.4943 GB, free: 3.215 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.121e-05/0.3775, allocations: 7.688 kB / 0.4943 GB, free: 3.211 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.3775, allocations: 4 kB / 0.4943 GB, free: 3.207 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007529/0.3783, allocations: 495.1 kB / 0.4948 GB, free: 2.777 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000159/0.3785, allocations: 115.4 kB / 0.4949 GB, free: 2.688 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001356/0.3786, allocations: 112.3 kB / 0.495 GB, free: 2.609 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.084e-05/0.3786, allocations: 112 / 0.495 GB, free: 2.609 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002328/0.3789, allocations: 226.7 kB / 0.4952 GB, free: 2.383 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 1.153e-06/0.3789, allocations: 0 / 0.4952 GB, free: 2.383 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004621/0.3794, allocations: 252.3 kB / 0.4955 GB, free: 2.133 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.991e-05/0.3795, allocations: 191.9 kB / 0.4957 GB, free: 1.902 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000575/0.38, allocations: 488.9 kB / 0.4961 GB, free: 1.422 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.445e-05/0.3801, allocations: 29.7 kB / 0.4962 GB, free: 1.387 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.878e-05/0.3801, allocations: 109.1 kB / 0.4963 GB, free: 1.277 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.29e-05/0.3802, allocations: 27.62 kB / 0.4963 GB, free: 1.25 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.069e-05/0.3802, allocations: 0 / 0.4963 GB, free: 1.25 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.3803, allocations: 334.8 kB / 0.4966 GB, free: 0.9141 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001193/0.3805, allocations: 67.98 kB / 0.4967 GB, free: 0.8438 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001174/0.3806, allocations: 82.92 kB / 0.4968 GB, free: 0.7656 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001029/0.3807, allocations: 59.97 kB / 0.4968 GB, free: 0.707 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.3807, allocations: 0 / 0.4968 GB, free: 0.707 MB / 362.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003675/0.3811, allocations: 233.5 kB / 0.497 GB, free: 484 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.3811, allocations: 11.98 kB / 0.4971 GB, free: 472 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.952e-06/0.3811, allocations: 0 / 0.4971 GB, free: 472 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.048e-05/0.3811, allocations: 0 / 0.4971 GB, free: 472 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.594e-05/0.3812, allocations: 8 kB / 0.4971 GB, free: 464 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.598e-06/0.3812, allocations: 0 / 0.4971 GB, free: 464 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001945/0.3814, allocations: 11.91 kB / 0.4971 GB, free: 452 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001174/0.3815, allocations: 97.23 kB / 0.4972 GB, free: 356 kB / 362.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.000215/0.3817, allocations: 279.6 kB / 0.4974 GB, free: 36 kB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.099e-05/0.3818, allocations: 44.56 kB / 0.4975 GB, free: 15.99 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001261/0.3819, allocations: 63.58 kB / 0.4975 GB, free: 15.93 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.84e-06/0.382, allocations: 7.906 kB / 0.4975 GB, free: 15.92 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.382, allocations: 0 / 0.4975 GB, free: 15.92 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.382, allocations: 3.984 kB / 0.4975 GB, free: 15.91 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008038/0.3828, allocations: 0.6315 MB / 0.4982 GB, free: 15.24 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.3828, allocations: 0 / 0.4982 GB, free: 15.24 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.42e-06/0.3828, allocations: 0 / 0.4982 GB, free: 15.24 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.3828, allocations: 7.906 kB / 0.4982 GB, free: 15.23 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.08e-05/0.3829, allocations: 19.98 kB / 0.4982 GB, free: 15.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.3829, allocations: 0 / 0.4982 GB, free: 15.21 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.3829, allocations: 0 / 0.4982 GB, free: 15.21 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004554/0.3833, allocations: 371.1 kB / 0.4985 GB, free: 14.83 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003809/0.3837, allocations: 264.9 kB / 0.4988 GB, free: 14.55 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.359e-05/0.3838, allocations: 16 kB / 0.4988 GB, free: 14.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001794/0.384, allocations: 23.92 kB / 0.4988 GB, free: 14.52 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001575/0.3842, allocations: 47.94 kB / 0.4989 GB, free: 14.47 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001016/0.3843, allocations: 107.7 kB / 0.499 GB, free: 14.37 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0004474/0.3847, allocations: 394.9 kB / 0.4994 GB, free: 13.98 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003025/0.3851, allocations: 46.44 kB / 0.4994 GB, free: 13.94 MB / 378.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.0001488/0.3852, allocations: 115.1 kB / 0.4995 GB, free: 13.82 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004522/0.3857, allocations: 336.4 kB / 0.4998 GB, free: 13.46 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.3857, allocations: 4 kB / 0.4998 GB, free: 13.46 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003221/0.386, allocations: 324.4 kB / 0.5001 GB, free: 13.11 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006958/0.3867, allocations: 145.1 kB / 0.5003 GB, free: 12.97 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001055/0.3878, allocations: 0.603 MB / 0.5009 GB, free: 12.34 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004826/0.3883, allocations: 0.8411 MB / 0.5017 GB, free: 11.47 MB / 378.7 MB Notification: Performance of SimCode: time 1.924e-06/0.3883, allocations: 0 / 0.5017 GB, free: 11.47 MB / 378.7 MB Notification: Performance of Templates: time 0.009393/0.3977, allocations: 6.271 MB / 0.5078 GB, free: 5.098 MB / 378.7 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","../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches