Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Blocks.MuxDemux,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y1|y2|y3|y4|y5|clock.y|mux5.y.1.|mux5.y.2.|mux5.y.3.|mux5.y.4.|mux5.y.5.|demux5.y.1.|demux5.y.2.|demux5.y.3.|demux5.y.4.|demux5.y.5.|mux3.y.1.|mux3.y.2.|mux3.y.3.|mux2.y.1.|mux2.y.2.|demux2.y.1.|demux2.y.2.|demux3.y.1.|demux3.y.2.|demux3.y.3.",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux") translateModel(ModelicaTest.Blocks.MuxDemux,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y1|y2|y3|y4|y5|clock.y|mux5.y.1.|mux5.y.2.|mux5.y.3.|mux5.y.4.|mux5.y.5.|demux5.y.1.|demux5.y.2.|demux5.y.3.|demux5.y.4.|demux5.y.5.|mux3.y.1.|mux3.y.2.|mux3.y.3.|mux2.y.1.|mux2.y.2.|demux2.y.1.|demux2.y.2.|demux3.y.1.|demux3.y.2.|demux3.y.3.",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux") [: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.001406/0.001406, allocations: 192.1 kB / 8.534 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.373/1.373, allocations: 225.5 MB / 234.4 MB, free: 3.379 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009112/0.0009111, allocations: 92.05 kB / 286.3 MB, free: 5.227 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.237/0.237, allocations: 45.14 MB / 383.3 MB, free: 0.5469 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 7.443e-06/7.474e-06, allocations: 0 / 452.6 MB, free: 76.2 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1325/0.1325, allocations: 63.24 MB / 0.5038 GB, free: 13.03 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3443/0.4768, allocations: 86.24 MB / 0.588 GB, free: 0.6875 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001916/0.477, allocations: 62.66 kB / 0.588 GB, free: 0.6562 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.003028/0.4801, allocations: 1.182 MB / 0.5892 GB, free: 15.64 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.303e-05/0.4801, allocations: 4 kB / 0.5892 GB, free: 15.64 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0003862/0.4805, allocations: 401.3 kB / 0.5896 GB, free: 15.21 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.4805, allocations: 8.031 kB / 0.5896 GB, free: 15.2 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.766e-05/0.4806, allocations: 20.03 kB / 0.5896 GB, free: 15.18 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002545/0.4809, allocations: 225.4 kB / 0.5898 GB, free: 14.93 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.495e-05/0.4809, allocations: 4 kB / 0.5898 GB, free: 14.93 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.187e-05/0.4809, allocations: 16 kB / 0.5898 GB, free: 14.91 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001771/0.4811, allocations: 107.1 kB / 0.5899 GB, free: 14.84 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002322/0.4813, allocations: 160.9 kB / 0.5901 GB, free: 14.71 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.4814, allocations: 0 / 0.5901 GB, free: 14.71 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.539e-05/0.4814, allocations: 0 / 0.5901 GB, free: 14.71 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.226e-06/0.4814, allocations: 4 kB / 0.5901 GB, free: 14.7 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005854/0.482, allocations: 471.2 kB / 0.5906 GB, free: 14.24 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.631e-05/0.4821, allocations: 34.31 kB / 0.5906 GB, free: 14.2 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.918e-05/0.4821, allocations: 19.67 kB / 0.5906 GB, free: 14.19 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.163e-05/0.4821, allocations: 4 kB / 0.5906 GB, free: 14.18 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.784e-05/0.4821, allocations: 34.56 kB / 0.5906 GB, free: 14.14 MB / 394.7 MB Notification: Performance of pre-optimization done (n=5): time 1.462e-06/0.4822, allocations: 0 / 0.5906 GB, free: 14.14 MB / 394.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001546/0.4823, allocations: 45.08 kB / 0.5907 GB, free: 14.09 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.662e-05/0.4824, allocations: 63.3 kB / 0.5907 GB, free: 14.02 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.254e-05/0.4824, allocations: 100.9 kB / 0.5908 GB, free: 13.92 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.295e-05/0.4825, allocations: 25.7 kB / 0.5909 GB, free: 13.89 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.915e-05/0.4825, allocations: 134.3 kB / 0.591 GB, free: 13.76 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.827e-05/0.4825, allocations: 7.812 kB / 0.591 GB, free: 13.75 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.985e-06/0.4826, allocations: 4 kB / 0.591 GB, free: 13.75 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001015/0.4827, allocations: 322.5 kB / 0.5913 GB, free: 13.43 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.397e-05/0.4827, allocations: 4 kB / 0.5913 GB, free: 13.43 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.336e-05/0.4827, allocations: 7.312 kB / 0.5913 GB, free: 13.42 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.859e-05/0.4827, allocations: 11.88 kB / 0.5913 GB, free: 13.41 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.4827, allocations: 0 / 0.5913 GB, free: 13.41 MB / 394.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 7.065e-05/0.4828, allocations: 56.78 kB / 0.5914 GB, free: 13.36 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/0.4828, allocations: 4 kB / 0.5914 GB, free: 13.35 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.4828, allocations: 0 / 0.5914 GB, free: 13.35 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.045e-05/0.4829, allocations: 0 / 0.5914 GB, free: 13.35 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.142e-05/0.483, allocations: 15.94 kB / 0.5914 GB, free: 13.34 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.483, allocations: 4 kB / 0.5914 GB, free: 13.33 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.801e-05/0.483, allocations: 3.984 kB / 0.5914 GB, free: 13.33 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.336e-06/0.483, allocations: 4 kB / 0.5914 GB, free: 13.32 MB / 394.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * 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 5.801e-05/0.4831, allocations: 104.9 kB / 0.5915 GB, free: 13.21 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.409e-05/0.4831, allocations: 0 / 0.5915 GB, free: 13.21 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.831e-05/0.4831, allocations: 11.31 kB / 0.5915 GB, free: 13.2 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.4832, allocations: 4 kB / 0.5915 GB, free: 13.2 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.4832, allocations: 3.906 kB / 0.5915 GB, free: 13.2 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.4832, allocations: 0 / 0.5915 GB, free: 13.2 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002467/0.4834, allocations: 312.5 kB / 0.5918 GB, free: 12.86 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.4834, allocations: 0 / 0.5918 GB, free: 12.86 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.038e-05/0.4835, allocations: 11.5 kB / 0.5918 GB, free: 12.86 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.497e-06/0.4835, allocations: 4 kB / 0.5919 GB, free: 12.85 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.644e-06/0.4835, allocations: 8.219 kB / 0.5919 GB, free: 12.84 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.4835, allocations: 3.984 kB / 0.5919 GB, free: 12.84 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.4835, allocations: 4.312 kB / 0.5919 GB, free: 12.84 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.667e-05/0.4836, allocations: 141.8 kB / 0.592 GB, free: 12.69 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.101e-05/0.4837, allocations: 81.09 kB / 0.5921 GB, free: 12.59 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.519e-05/0.4837, allocations: 4 kB / 0.5921 GB, free: 12.59 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.998e-05/0.4838, allocations: 3.906 kB / 0.5921 GB, free: 12.58 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.861e-05/0.4838, allocations: 11.98 kB / 0.5921 GB, free: 12.57 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.375e-06/0.4838, allocations: 3.938 kB / 0.5921 GB, free: 12.57 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.238e-05/0.4839, allocations: 90.62 kB / 0.5922 GB, free: 12.48 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002296/0.4841, allocations: 23.84 kB / 0.5922 GB, free: 12.46 MB / 394.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * 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.0001136/0.4842, allocations: 87.25 kB / 0.5923 GB, free: 12.36 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 8.009e-05/0.4843, allocations: 23.31 kB / 0.5923 GB, free: 12.34 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.4843, allocations: 0 / 0.5923 GB, free: 12.34 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.09e-05/0.4843, allocations: 8 kB / 0.5923 GB, free: 12.34 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001823/0.4845, allocations: 27.66 kB / 0.5924 GB, free: 12.31 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003884/0.4849, allocations: 165.5 kB / 0.5925 GB, free: 12.13 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003208/0.4853, allocations: 0.7392 MB / 0.5932 GB, free: 11.37 MB / 394.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4853, allocations: 3.938 kB / 0.5932 GB, free: 11.36 MB / 394.7 MB Notification: Performance of Templates: time 0.002431/0.4877, allocations: 0.6014 MB / 0.5938 GB, free: 10.78 MB / 394.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/MuxDemux/MuxDemux.csv","../files/ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches