Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(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_3.2.3_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_3.2.3_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 3.2.3+maint.om/package.mo): time 0.0009089/0.0009089, allocations: 187.8 kB / 7.804 MB, free: 2.492 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.005/1.005, allocations: 205.2 MB / 213.4 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007641/0.0007641, allocations: 98.83 kB / 261.4 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.149/0.149, allocations: 43.49 MB / 352.8 MB, free: 1.965 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.23e-06/5.25e-06, allocations: 0 / 417.7 MB, free: 40.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.216/0.216, allocations: 58.84 MB / 476.5 MB, free: 5.219 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1028/0.3189, allocations: 84.06 MB / 0.5475 GB, free: 14.9 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001743/0.3191, allocations: 63.97 kB / 0.5475 GB, free: 14.84 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.003142/0.3223, allocations: 1.164 MB / 0.5487 GB, free: 13.68 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.194e-05/0.3223, allocations: 4 kB / 0.5487 GB, free: 13.68 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.0003414/0.3226, allocations: 409.5 kB / 0.5491 GB, free: 13.23 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.3227, allocations: 8.031 kB / 0.5491 GB, free: 13.22 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.79e-05/0.3227, allocations: 19.81 kB / 0.5491 GB, free: 13.2 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002165/0.323, allocations: 218.7 kB / 0.5493 GB, free: 12.95 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.423e-05/0.323, allocations: 8 kB / 0.5493 GB, free: 12.94 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.255e-05/0.323, allocations: 8 kB / 0.5493 GB, free: 12.93 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001774/0.3232, allocations: 108.9 kB / 0.5494 GB, free: 12.83 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002145/0.3234, allocations: 160.2 kB / 0.5496 GB, free: 12.67 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.494e-06/0.3234, allocations: 7.938 kB / 0.5496 GB, free: 12.66 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.343e-05/0.3234, allocations: 0 / 0.5496 GB, free: 12.66 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.3235, allocations: 4 kB / 0.5496 GB, free: 12.66 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005032/0.324, allocations: 471.8 kB / 0.55 GB, free: 12.16 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.528e-05/0.324, allocations: 30.58 kB / 0.5501 GB, free: 12.12 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.542e-05/0.3241, allocations: 20.98 kB / 0.5501 GB, free: 12.09 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.776e-06/0.3241, allocations: 0 / 0.5501 GB, free: 12.09 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.709e-05/0.3241, allocations: 30.56 kB / 0.5501 GB, free: 12.05 MB / 394.7 MB Notification: Performance of pre-optimization done (n=5): time 9.01e-07/0.3241, allocations: 0 / 0.5501 GB, free: 12.05 MB / 394.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001384/0.3243, allocations: 65.61 kB / 0.5502 GB, free: 11.98 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.171e-05/0.3243, allocations: 59.31 kB / 0.5502 GB, free: 11.91 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.163e-05/0.3244, allocations: 101 kB / 0.5503 GB, free: 11.81 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 9.467e-06/0.3244, allocations: 25.7 kB / 0.5503 GB, free: 11.78 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.14e-05/0.3245, allocations: 131.9 kB / 0.5505 GB, free: 11.64 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.957e-05/0.3245, allocations: 15.81 kB / 0.5505 GB, free: 11.63 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.354e-06/0.3245, allocations: 0 / 0.5505 GB, free: 11.63 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.848e-05/0.3246, allocations: 310.8 kB / 0.5508 GB, free: 11.32 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.362e-05/0.3246, allocations: 12 kB / 0.5508 GB, free: 11.3 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.189e-05/0.3246, allocations: 7.984 kB / 0.5508 GB, free: 11.3 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.827e-05/0.3246, allocations: 8 kB / 0.5508 GB, free: 11.29 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.3246, allocations: 0 / 0.5508 GB, free: 11.29 MB / 394.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 6.406e-05/0.3247, allocations: 53.55 kB / 0.5509 GB, free: 11.23 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.11e-05/0.3247, allocations: 4 kB / 0.5509 GB, free: 11.23 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.657e-06/0.3247, allocations: 0 / 0.5509 GB, free: 11.23 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.129e-05/0.3248, allocations: 7.984 kB / 0.5509 GB, free: 11.22 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.474e-05/0.3248, allocations: 8 kB / 0.5509 GB, free: 11.21 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.478e-06/0.3249, allocations: 4 kB / 0.5509 GB, free: 11.21 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.117e-05/0.3249, allocations: 4 kB / 0.5509 GB, free: 11.2 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.721e-06/0.3249, allocations: 0 / 0.5509 GB, free: 11.2 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.792e-05/0.325, allocations: 106.3 kB / 0.551 GB, free: 11.09 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.493e-05/0.325, allocations: 4 kB / 0.551 GB, free: 11.09 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.018e-05/0.325, allocations: 12.05 kB / 0.551 GB, free: 11.08 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.325, allocations: 0 / 0.551 GB, free: 11.08 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/0.325, allocations: 7.906 kB / 0.551 GB, free: 11.07 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.3251, allocations: 0 / 0.551 GB, free: 11.07 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002341/0.3253, allocations: 315 kB / 0.5513 GB, free: 10.72 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.3253, allocations: 4 kB / 0.5513 GB, free: 10.71 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.082e-05/0.3254, allocations: 11.98 kB / 0.5513 GB, free: 10.7 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.3254, allocations: 0 / 0.5513 GB, free: 10.7 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.246e-06/0.3254, allocations: 3.906 kB / 0.5513 GB, free: 10.7 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.3254, allocations: 0 / 0.5513 GB, free: 10.7 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.3254, allocations: 0 / 0.5513 GB, free: 10.7 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.231e-05/0.3255, allocations: 151.8 kB / 0.5515 GB, free: 10.54 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.186e-05/0.3255, allocations: 85.05 kB / 0.5516 GB, free: 10.43 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.296e-05/0.3256, allocations: 0 / 0.5516 GB, free: 10.43 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.905e-05/0.3256, allocations: 11.84 kB / 0.5516 GB, free: 10.42 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.613e-05/0.3257, allocations: 7.984 kB / 0.5516 GB, free: 10.41 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.625e-06/0.3257, allocations: 0 / 0.5516 GB, free: 10.41 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.43e-05/0.3257, allocations: 87.58 kB / 0.5517 GB, free: 10.33 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002023/0.3259, allocations: 23.84 kB / 0.5517 GB, free: 10.3 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 8.106e-05/0.326, allocations: 95.25 kB / 0.5518 GB, free: 10.2 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 6.501e-05/0.3261, allocations: 20 kB / 0.5518 GB, free: 10.18 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.462e-06/0.3261, allocations: 0 / 0.5518 GB, free: 10.18 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.043e-05/0.3261, allocations: 15.92 kB / 0.5518 GB, free: 10.16 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001538/0.3263, allocations: 11.91 kB / 0.5518 GB, free: 10.15 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003532/0.3266, allocations: 171.8 kB / 0.552 GB, free: 9.953 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002723/0.3269, allocations: 0.7432 MB / 0.5527 GB, free: 9.184 MB / 394.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3269, allocations: 0 / 0.5527 GB, free: 9.184 MB / 394.7 MB Notification: Performance of Templates: time 0.00222/0.3291, allocations: 0.5968 MB / 0.5533 GB, free: 8.586 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/MuxDemux/MuxDemux.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches