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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001427/0.001427, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.342/1.342, allocations: 225.6 MB / 234.8 MB, free: 3.266 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008225/0.0008225, allocations: 103.6 kB / 286.7 MB, free: 5.273 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1824/0.1824, allocations: 45.15 MB / 383.8 MB, free: 292 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.377e-05/1.379e-05, allocations: 0 / 453.2 MB, free: 75.84 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09184/0.09186, allocations: 63.25 MB / 0.5044 GB, free: 12.64 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3343/0.4262, allocations: 89.07 MB / 0.5914 GB, free: 13.56 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000225/0.4265, allocations: 78.89 kB / 0.5914 GB, free: 13.52 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01156/0.438, allocations: 4.804 MB / 0.5961 GB, free: 9.434 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.4381, allocations: 2.734 kB / 0.5961 GB, free: 9.434 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.415e-05/0.4381, allocations: 7.812 kB / 0.5961 GB, free: 9.43 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.0007195/0.4388, allocations: 0.5542 MB / 0.5967 GB, free: 8.848 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.367e-05/0.4389, allocations: 16.03 kB / 0.5967 GB, free: 8.832 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.508e-05/0.4389, allocations: 31.62 kB / 0.5967 GB, free: 8.801 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002632/0.4392, allocations: 270.6 kB / 0.597 GB, free: 8.52 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.679e-05/0.4392, allocations: 8 kB / 0.597 GB, free: 8.512 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.178e-05/0.4393, allocations: 16 kB / 0.597 GB, free: 8.496 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003007/0.4396, allocations: 184.7 kB / 0.5972 GB, free: 8.383 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003645/0.4399, allocations: 259.9 kB / 0.5974 GB, free: 8.184 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.44, allocations: 0 / 0.5974 GB, free: 8.184 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.283e-05/0.44, allocations: 4 kB / 0.5974 GB, free: 8.18 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.745e-06/0.44, allocations: 8 kB / 0.5974 GB, free: 8.172 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001757/0.4418, allocations: 1.227 MB / 0.5986 GB, free: 7.098 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004852/0.4423, allocations: 425.8 kB / 0.599 GB, free: 6.738 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002699/0.4425, allocations: 172.5 kB / 0.5992 GB, free: 6.617 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.953e-05/0.4426, allocations: 4.234 kB / 0.5992 GB, free: 6.613 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.881e-05/0.4426, allocations: 33.98 kB / 0.5992 GB, free: 6.574 MB / 394.7 MB Notification: Performance of pre-optimization done (n=27): time 1.373e-06/0.4426, allocations: 0 / 0.5992 GB, free: 6.574 MB / 394.7 MB Notification: Performance of matching and sorting (n=27): time 0.0007877/0.4434, allocations: 389.3 kB / 0.5996 GB, free: 6.254 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.284e-05/0.4434, allocations: 51.41 kB / 0.5997 GB, free: 6.191 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001478/0.4436, allocations: 180.4 kB / 0.5998 GB, free: 6.039 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.108e-05/0.4436, allocations: 25.7 kB / 0.5999 GB, free: 6.008 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.324e-05/0.4437, allocations: 175.7 kB / 0.6 GB, free: 5.855 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.146e-05/0.4438, allocations: 89.78 kB / 0.6001 GB, free: 5.777 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.141e-05/0.4438, allocations: 0 / 0.6001 GB, free: 5.777 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001001/0.4439, allocations: 332.2 kB / 0.6004 GB, free: 5.453 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001041/0.444, allocations: 71.81 kB / 0.6005 GB, free: 5.41 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001245/0.4441, allocations: 101.5 kB / 0.6006 GB, free: 5.336 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001109/0.4442, allocations: 76.22 kB / 0.6007 GB, free: 5.293 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.4443, allocations: 8 kB / 0.6007 GB, free: 5.285 MB / 394.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007359/0.445, allocations: 405.7 kB / 0.6011 GB, free: 4.953 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.206e-05/0.445, allocations: 4 kB / 0.6011 GB, free: 4.949 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/0.445, allocations: 0 / 0.6011 GB, free: 4.949 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007657/0.4458, allocations: 233 kB / 0.6013 GB, free: 4.746 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001367/0.4459, allocations: 31.98 kB / 0.6013 GB, free: 4.715 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002569/0.4485, allocations: 3.133 MB / 0.6044 GB, free: 1.664 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001771/0.4487, allocations: 27.77 kB / 0.6044 GB, free: 1.637 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.682e-05/0.4487, allocations: 12.41 kB / 0.6044 GB, free: 1.625 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 8.676e-05/0.4488, allocations: 116.6 kB / 0.6045 GB, free: 1.508 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.717e-05/0.4489, allocations: 23.72 kB / 0.6045 GB, free: 1.484 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.499e-05/0.449, allocations: 29.23 kB / 0.6046 GB, free: 1.469 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.449, allocations: 4 kB / 0.6046 GB, free: 1.465 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.449, allocations: 0 / 0.6046 GB, free: 1.465 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.449, allocations: 3.984 kB / 0.6046 GB, free: 1.461 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001169/0.4502, allocations: 0.7882 MB / 0.6053 GB, free: 0.7656 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.4502, allocations: 4 kB / 0.6054 GB, free: 0.7617 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.425e-05/0.4503, allocations: 23.19 kB / 0.6054 GB, free: 0.7422 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006811/0.451, allocations: 229.2 kB / 0.6056 GB, free: 0.5391 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.296e-05/0.451, allocations: 0 / 0.6056 GB, free: 0.5391 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002577/0.4536, allocations: 3.14 MB / 0.6087 GB, free: 13.49 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.4536, allocations: 4.031 kB / 0.6087 GB, free: 13.48 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007448/0.4543, allocations: 491.2 kB / 0.6091 GB, free: 13.04 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.274e-05/0.4544, allocations: 126 kB / 0.6093 GB, free: 12.91 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.469e-05/0.4545, allocations: 4 kB / 0.6093 GB, free: 12.91 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002199/0.4547, allocations: 31.97 kB / 0.6093 GB, free: 12.88 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.579e-05/0.4548, allocations: 35.41 kB / 0.6093 GB, free: 12.85 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.376e-05/0.4548, allocations: 7.938 kB / 0.6093 GB, free: 12.84 MB / 410.7 MB Notification: Performance of sorting global known variables: time 9.722e-05/0.4549, allocations: 143.3 kB / 0.6095 GB, free: 12.72 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4549, allocations: 0 / 0.6095 GB, free: 12.72 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003605/0.4553, allocations: 91.84 kB / 0.6096 GB, free: 12.63 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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.0001042/0.4554, allocations: 99.19 kB / 0.6096 GB, free: 12.52 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0006365/0.456, allocations: 488.2 kB / 0.6101 GB, free: 12.11 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.456, allocations: 0 / 0.6101 GB, free: 12.11 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004097/0.4565, allocations: 385.4 kB / 0.6105 GB, free: 11.77 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002578/0.4567, allocations: 27.27 kB / 0.6105 GB, free: 11.75 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000508/0.4572, allocations: 332.4 kB / 0.6108 GB, free: 11.45 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002551/0.4575, allocations: 0.7718 MB / 0.6116 GB, free: 10.65 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 7.682e-05/0.4576, allocations: 14.08 kB / 0.6116 GB, free: 10.63 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.718e-05/0.4576, allocations: 15.44 kB / 0.6116 GB, free: 10.62 MB / 410.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4576, allocations: 4 kB / 0.6116 GB, free: 10.61 MB / 410.7 MB Notification: Performance of Templates: time 0.006401/0.464, allocations: 3.559 MB / 0.6151 GB, free: 7.098 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