Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.conf.json 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 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|twoWay.LossPower|twoWay.p.i|twoWay.n1.v|twoWay.n1.i|twoWay.n2.v|twoWay.n2.i|controlledTwoWay.LossPower|controlledTwoWay.p.i|controlledTwoWay.n1.v|controlledTwoWay.n1.i|controlledTwoWay.n2.v|controlledTwoWay.n2.i",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") translateModel(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|twoWay.LossPower|twoWay.p.i|twoWay.n1.v|twoWay.n1.i|twoWay.n2.v|twoWay.n2.i|controlledTwoWay.LossPower|controlledTwoWay.p.i|controlledTwoWay.n1.v|controlledTwoWay.n1.i|controlledTwoWay.n2.v|controlledTwoWay.n2.i",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") [: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 4.0.0+maint.om/package.mo): time 0.001672/0.001672, allocations: 178.7 kB / 8.519 MB, free: 1.84 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.251/1.251, allocations: 221.4 MB / 230.3 MB, free: 7.703 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000884/0.0008838, allocations: 83.38 kB / 281.2 MB, free: 5.469 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1695/0.1695, allocations: 44.15 MB / 376.1 MB, free: 3.238 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 5.791e-06/5.811e-06, allocations: 224 / 444 MB, free: 15.62 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.1049, allocations: 61.91 MB / 0.4941 GB, free: 1.637 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2759/0.3809, allocations: 87.94 MB / 0.58 GB, free: 8.809 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001989/0.3811, allocations: 80.31 kB / 0.58 GB, free: 8.762 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.01168/0.3928, allocations: 4.511 MB / 0.5844 GB, free: 4.316 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.513e-05/0.3929, allocations: 8 kB / 0.5845 GB, free: 4.309 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: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.0007313/0.3936, allocations: 0.5646 MB / 0.585 GB, free: 3.699 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.565e-05/0.3936, allocations: 11.97 kB / 0.585 GB, free: 3.688 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.276e-05/0.3937, allocations: 35.62 kB / 0.585 GB, free: 3.652 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002894/0.394, allocations: 265.5 kB / 0.5853 GB, free: 3.355 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.554e-05/0.394, allocations: 8.75 kB / 0.5853 GB, free: 3.348 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.173e-05/0.3941, allocations: 19.94 kB / 0.5853 GB, free: 3.328 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003365/0.3944, allocations: 185.3 kB / 0.5855 GB, free: 3.148 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003861/0.3948, allocations: 260.7 kB / 0.5858 GB, free: 2.875 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.3948, allocations: 0 / 0.5858 GB, free: 2.875 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.55e-05/0.3949, allocations: 0 / 0.5858 GB, free: 2.875 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.207e-06/0.3949, allocations: 8 kB / 0.5858 GB, free: 2.867 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001958/0.3968, allocations: 1.237 MB / 0.587 GB, free: 1.562 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002664/0.3971, allocations: 211 kB / 0.5872 GB, free: 1.348 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002887/0.3974, allocations: 169.3 kB / 0.5873 GB, free: 1.18 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.456e-05/0.3975, allocations: 8.234 kB / 0.5873 GB, free: 1.172 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.466e-05/0.3975, allocations: 38.73 kB / 0.5874 GB, free: 1.125 MB / 394.7 MB Notification: Performance of pre-optimization done (n=27): time 1.422e-06/0.3975, allocations: 0 / 0.5874 GB, free: 1.125 MB / 394.7 MB Notification: Performance of matching and sorting (n=27): time 0.0008838/0.3984, allocations: 390.7 kB / 0.5878 GB, free: 0.7344 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.183e-05/0.3984, allocations: 55.41 kB / 0.5878 GB, free: 0.668 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001576/0.3986, allocations: 174 kB / 0.588 GB, free: 500 kB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.304e-05/0.3986, allocations: 25.7 kB / 0.588 GB, free: 468 kB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.213e-05/0.3987, allocations: 160.1 kB / 0.5881 GB, free: 304 kB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.03e-05/0.3988, allocations: 90.66 kB / 0.5882 GB, free: 212 kB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.122e-05/0.3988, allocations: 0 / 0.5882 GB, free: 212 kB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.3989, allocations: 334.8 kB / 0.5886 GB, free: 15.87 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001236/0.3991, allocations: 72.56 kB / 0.5886 GB, free: 15.8 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001426/0.3992, allocations: 99.41 kB / 0.5887 GB, free: 15.69 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001369/0.3993, allocations: 83.91 kB / 0.5888 GB, free: 15.61 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.3994, allocations: 3.984 kB / 0.5888 GB, free: 15.61 MB / 410.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008525/0.4002, allocations: 410.9 kB / 0.5892 GB, free: 15.19 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.086e-05/0.4002, allocations: 7.938 kB / 0.5892 GB, free: 15.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.4002, allocations: 0 / 0.5892 GB, free: 15.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008521/0.4011, allocations: 241.5 kB / 0.5894 GB, free: 14.94 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001742/0.4013, allocations: 23.98 kB / 0.5895 GB, free: 14.92 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00306/0.4044, allocations: 3.135 MB / 0.5925 GB, free: 11.56 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001831/0.4046, allocations: 27.77 kB / 0.5925 GB, free: 11.53 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.871e-05/0.4046, allocations: 8 kB / 0.5925 GB, free: 11.52 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 (booleanStep.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 17 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 6,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001139/0.4047, allocations: 117 kB / 0.5927 GB, free: 11.4 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.367e-05/0.4048, allocations: 19.72 kB / 0.5927 GB, free: 11.38 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.211e-05/0.4048, allocations: 34.56 kB / 0.5927 GB, free: 11.35 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-06/0.4048, allocations: 0 / 0.5927 GB, free: 11.35 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/0.4048, allocations: 4 kB / 0.5927 GB, free: 11.34 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.4049, allocations: 3.984 kB / 0.5927 GB, free: 11.34 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001326/0.4062, allocations: 0.8012 MB / 0.5935 GB, free: 10.49 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.083e-06/0.4062, allocations: 4 kB / 0.5935 GB, free: 10.48 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.935e-05/0.4063, allocations: 12 kB / 0.5935 GB, free: 10.47 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007409/0.407, allocations: 233.5 kB / 0.5937 GB, free: 10.24 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.44e-05/0.4071, allocations: 0 / 0.5937 GB, free: 10.24 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002836/0.4099, allocations: 3.13 MB / 0.5968 GB, free: 6.875 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.079e-06/0.4099, allocations: 7.891 kB / 0.5968 GB, free: 6.867 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008022/0.4107, allocations: 488.8 kB / 0.5973 GB, free: 6.367 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000106/0.4109, allocations: 116.8 kB / 0.5974 GB, free: 6.234 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.206e-05/0.4109, allocations: 4 kB / 0.5974 GB, free: 6.23 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002284/0.4111, allocations: 27.98 kB / 0.5974 GB, free: 6.203 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.386e-05/0.4112, allocations: 23.91 kB / 0.5974 GB, free: 6.18 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.784e-05/0.4112, allocations: 8 kB / 0.5974 GB, free: 6.172 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.000106/0.4113, allocations: 140.6 kB / 0.5976 GB, free: 6.035 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003682/0.4117, allocations: 95.69 kB / 0.5977 GB, free: 5.941 MB / 410.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: 1 (booleanStep.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 11 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 6,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001108/0.4118, allocations: 95.25 kB / 0.5978 GB, free: 5.84 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0006795/0.4125, allocations: 459.3 kB / 0.5982 GB, free: 5.371 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.4125, allocations: 0 / 0.5982 GB, free: 5.371 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004661/0.413, allocations: 371.8 kB / 0.5986 GB, free: 4.988 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000243/0.4132, allocations: 32.88 kB / 0.5986 GB, free: 4.957 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006339/0.4139, allocations: 328.7 kB / 0.5989 GB, free: 4.613 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003187/0.4142, allocations: 0.7792 MB / 0.5997 GB, free: 3.805 MB / 410.7 MB Notification: Performance of SimCode: time 2.81e-07/0.4142, allocations: 0 / 0.5997 GB, free: 3.805 MB / 410.7 MB Notification: Performance of Templates: time 0.006904/0.4211, allocations: 3.903 MB / 0.6035 GB, free: 15.93 MB / 426.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & ./ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Analog/Ideal/IdealTwoWaySwitches/IdealTwoWaySwitches.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches