Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.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.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_trunk_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_trunk_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 trunk/package.mo): time 0.001226/0.001226, allocations: 203 kB / 8.543 MB, free: 1.805 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.266/1.266, allocations: 225.5 MB / 234.4 MB, free: 3.309 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000873/0.0008731, allocations: 93.78 kB / 286.3 MB, free: 5.289 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1923/0.1923, allocations: 45.14 MB / 383.3 MB, free: 0.5234 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 6.392e-06/6.512e-06, allocations: 0 / 452.6 MB, free: 76.17 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09071/0.09073, allocations: 63.24 MB / 0.5038 GB, free: 13.01 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2934/0.3842, allocations: 89.01 MB / 0.5907 GB, free: 13.87 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002406/0.3845, allocations: 72.89 kB / 0.5908 GB, free: 13.83 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.01254/0.3971, allocations: 4.564 MB / 0.5952 GB, free: 9.988 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.706e-05/0.3971, allocations: 6.734 kB / 0.5952 GB, free: 9.984 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.0008296/0.3979, allocations: 0.5708 MB / 0.5958 GB, free: 9.387 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/0.398, allocations: 12.03 kB / 0.5958 GB, free: 9.375 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.069e-05/0.3981, allocations: 34.62 kB / 0.5958 GB, free: 9.344 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003202/0.3984, allocations: 260.3 kB / 0.5961 GB, free: 9.07 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.874e-05/0.3984, allocations: 12 kB / 0.5961 GB, free: 9.059 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.315e-05/0.3985, allocations: 16 kB / 0.5961 GB, free: 9.043 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003504/0.3988, allocations: 189 kB / 0.5963 GB, free: 8.93 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004212/0.3993, allocations: 254.1 kB / 0.5965 GB, free: 8.73 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.106e-05/0.3993, allocations: 0 / 0.5965 GB, free: 8.73 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.561e-05/0.3993, allocations: 0 / 0.5965 GB, free: 8.73 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.117e-05/0.3993, allocations: 11.91 kB / 0.5965 GB, free: 8.719 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001964/0.4013, allocations: 1.252 MB / 0.5978 GB, free: 7.617 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002648/0.4016, allocations: 197 kB / 0.598 GB, free: 7.48 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000288/0.4019, allocations: 175.4 kB / 0.5981 GB, free: 7.359 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.91e-05/0.4019, allocations: 8.172 kB / 0.5981 GB, free: 7.352 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.801e-05/0.4019, allocations: 42.03 kB / 0.5982 GB, free: 7.305 MB / 394.7 MB Notification: Performance of pre-optimization done (n=27): time 1.472e-06/0.402, allocations: 0 / 0.5982 GB, free: 7.305 MB / 394.7 MB Notification: Performance of matching and sorting (n=27): time 0.0008756/0.4028, allocations: 387.6 kB / 0.5985 GB, free: 6.984 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.016e-05/0.4029, allocations: 60 kB / 0.5986 GB, free: 6.914 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001635/0.4031, allocations: 179.7 kB / 0.5988 GB, free: 6.758 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.288e-05/0.4031, allocations: 29.7 kB / 0.5988 GB, free: 6.723 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.221e-05/0.4032, allocations: 158.1 kB / 0.5989 GB, free: 6.57 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.241e-05/0.4032, allocations: 81.47 kB / 0.599 GB, free: 6.5 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.172e-05/0.4032, allocations: 0 / 0.599 GB, free: 6.5 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.4034, allocations: 333.2 kB / 0.5993 GB, free: 6.176 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000117/0.4035, allocations: 76.31 kB / 0.5994 GB, free: 6.129 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001302/0.4036, allocations: 102.3 kB / 0.5995 GB, free: 6.055 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001338/0.4038, allocations: 84.45 kB / 0.5996 GB, free: 6.004 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.4038, allocations: 0 / 0.5996 GB, free: 6.004 MB / 394.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008152/0.4046, allocations: 407.8 kB / 0.6 GB, free: 5.672 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.349e-05/0.4046, allocations: 12 kB / 0.6 GB, free: 5.66 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.4047, allocations: 0 / 0.6 GB, free: 5.66 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008557/0.4055, allocations: 235.6 kB / 0.6002 GB, free: 5.453 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001634/0.4057, allocations: 31.92 kB / 0.6002 GB, free: 5.422 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003025/0.4087, allocations: 3.131 MB / 0.6033 GB, free: 2.344 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001931/0.4089, allocations: 31.89 kB / 0.6033 GB, free: 2.312 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.234e-05/0.409, allocations: 8 kB / 0.6033 GB, free: 2.305 MB / 394.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.0001247/0.4091, allocations: 104.9 kB / 0.6034 GB, free: 2.195 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.68e-05/0.4092, allocations: 23.72 kB / 0.6035 GB, free: 2.172 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.795e-05/0.4092, allocations: 28.22 kB / 0.6035 GB, free: 2.164 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.4092, allocations: 11.98 kB / 0.6035 GB, free: 2.152 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.335e-06/0.4092, allocations: 0 / 0.6035 GB, free: 2.152 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.4093, allocations: 7.938 kB / 0.6035 GB, free: 2.145 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001293/0.4105, allocations: 0.7823 MB / 0.6043 GB, free: 1.457 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.4106, allocations: 4 kB / 0.6043 GB, free: 1.453 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.69e-05/0.4107, allocations: 23.92 kB / 0.6043 GB, free: 1.43 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000837/0.4115, allocations: 233.1 kB / 0.6045 GB, free: 1.227 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.953e-05/0.4115, allocations: 4 kB / 0.6045 GB, free: 1.223 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002967/0.4145, allocations: 3.127 MB / 0.6076 GB, free: 14.14 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.4145, allocations: 0 / 0.6076 GB, free: 14.14 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008519/0.4154, allocations: 487.8 kB / 0.608 GB, free: 13.72 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001319/0.4155, allocations: 123.2 kB / 0.6082 GB, free: 13.59 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.634e-05/0.4156, allocations: 0 / 0.6082 GB, free: 13.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002406/0.4158, allocations: 35.97 kB / 0.6082 GB, free: 13.55 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.887e-05/0.4159, allocations: 11.17 kB / 0.6082 GB, free: 13.55 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.775e-05/0.4159, allocations: 4 kB / 0.6082 GB, free: 13.54 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0001139/0.416, allocations: 152.4 kB / 0.6084 GB, free: 13.42 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004179/0.4165, allocations: 87.84 kB / 0.6084 GB, free: 13.33 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.0001303/0.4166, allocations: 103.9 kB / 0.6085 GB, free: 13.22 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0007766/0.4174, allocations: 465.3 kB / 0.609 GB, free: 12.82 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.4174, allocations: 0 / 0.609 GB, free: 12.82 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005096/0.4179, allocations: 375.5 kB / 0.6093 GB, free: 12.48 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00026/0.4182, allocations: 30.8 kB / 0.6094 GB, free: 12.46 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007755/0.419, allocations: 318 kB / 0.6097 GB, free: 12.17 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003867/0.4194, allocations: 0.7869 MB / 0.6104 GB, free: 11.35 MB / 410.7 MB Notification: Performance of SimCode: time 3.41e-07/0.4194, allocations: 0 / 0.6104 GB, free: 11.35 MB / 410.7 MB Notification: Performance of Templates: time 0.009193/0.4286, allocations: 3.914 MB / 0.6143 GB, free: 7.477 MB / 410.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & ./ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches