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/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001423/0.001423, allocations: 113.1 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001604/0.001604, allocations: 208.9 kB / 19.4 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.465/1.465, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2333/0.2333, allocations: 46.1 MB / 345 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00162/0.00162, allocations: 75.88 kB / 482 MB, free: 4.109 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3947/0.3964, allocations: 62.43 MB / 0.5316 GB, free: 13.63 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.005141/0.4016, allocations: 2.933 MB / 0.5345 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001745/0.4033, allocations: 0.6773 MB / 0.5352 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004205/0.4038, allocations: 13.47 kB / 0.5352 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002563/0.4041, allocations: 52.78 kB / 0.5352 GB, free: 10.7 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000294/0.4044, allocations: 94.56 kB / 0.5353 GB, free: 10.62 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002387/0.4047, allocations: 94.36 kB / 0.5354 GB, free: 10.53 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004423/0.4051, allocations: 403.9 kB / 0.5358 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002849/0.4054, allocations: 125.9 kB / 0.5359 GB, free: 10.22 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001823/0.4056, allocations: 153.4 kB / 0.5361 GB, free: 10.13 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002218/0.4058, allocations: 161.1 kB / 0.5362 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.255e-05/0.4059, allocations: 34.69 kB / 0.5362 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.774e-05/0.406, allocations: 34.22 kB / 0.5363 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.95e-05/0.406, allocations: 79.45 kB / 0.5364 GB, free: 9.949 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001812/0.4062, allocations: 164.9 kB / 0.5365 GB, free: 9.84 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004478/0.4067, allocations: 390.9 kB / 0.5369 GB, free: 9.559 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.4067, allocations: 0 / 0.5369 GB, free: 9.559 MB / 398.1 MB Notification: Performance of FrontEnd: time 4.068e-06/0.4067, allocations: 1.062 kB / 0.5369 GB, free: 9.559 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.817e-06/0.4067, allocations: 3.938 kB / 0.5369 GB, free: 9.555 MB / 398.1 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.001077/0.4078, allocations: 0.6361 MB / 0.5375 GB, free: 9.008 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.488e-05/0.4079, allocations: 10.05 kB / 0.5375 GB, free: 9.008 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.719e-05/0.4079, allocations: 37.94 kB / 0.5376 GB, free: 8.988 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004225/0.4084, allocations: 273.5 kB / 0.5378 GB, free: 8.715 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.846e-05/0.4084, allocations: 20 kB / 0.5378 GB, free: 8.707 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.636e-05/0.4085, allocations: 25.62 kB / 0.5379 GB, free: 8.699 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000613/0.4091, allocations: 337.1 kB / 0.5382 GB, free: 8.477 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.256e-05/0.4091, allocations: 1.469 kB / 0.5382 GB, free: 8.477 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.876e-05/0.4092, allocations: 10.56 kB / 0.5382 GB, free: 8.469 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.139e-05/0.4092, allocations: 6.219 kB / 0.5382 GB, free: 8.469 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005071/0.4097, allocations: 241.9 kB / 0.5384 GB, free: 8.359 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002092/0.4118, allocations: 1.24 MB / 0.5396 GB, free: 7.34 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008347/0.4126, allocations: 483.3 kB / 0.5401 GB, free: 6.973 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003827/0.413, allocations: 162.5 kB / 0.5403 GB, free: 6.895 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.213e-05/0.4131, allocations: 7.141 kB / 0.5403 GB, free: 6.891 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.884e-05/0.4131, allocations: 37.55 kB / 0.5403 GB, free: 6.848 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 2.094e-06/0.4131, allocations: 0 / 0.5403 GB, free: 6.848 MB / 398.1 MB Notification: Performance of matching and sorting (n=27): time 0.002934/0.4161, allocations: 1.006 MB / 0.5413 GB, free: 6.242 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.405e-05/0.4161, allocations: 58.09 kB / 0.5413 GB, free: 6.176 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003025/0.4164, allocations: 236.6 kB / 0.5416 GB, free: 6.008 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.011e-05/0.4165, allocations: 34.98 kB / 0.5416 GB, free: 5.969 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001297/0.4166, allocations: 169 kB / 0.5418 GB, free: 5.812 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.181e-05/0.4167, allocations: 86.25 kB / 0.5418 GB, free: 5.738 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001129/0.4168, allocations: 52.92 kB / 0.5419 GB, free: 5.699 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001265/0.4169, allocations: 336.5 kB / 0.5422 GB, free: 5.367 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002506/0.4172, allocations: 101.3 kB / 0.5423 GB, free: 5.32 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000271/0.4175, allocations: 158.1 kB / 0.5425 GB, free: 5.211 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004908/0.418, allocations: 241.7 kB / 0.5427 GB, free: 5.07 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.418, allocations: 3.938 kB / 0.5427 GB, free: 5.066 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001162/0.4192, allocations: 497.4 kB / 0.5432 GB, free: 4.801 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.158e-05/0.4192, allocations: 6.969 kB / 0.5432 GB, free: 4.801 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.4192, allocations: 0 / 0.5432 GB, free: 4.801 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009723/0.4202, allocations: 248.1 kB / 0.5434 GB, free: 4.676 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001558/0.4204, allocations: 28.02 kB / 0.5434 GB, free: 4.672 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004285/0.4247, allocations: 3.682 MB / 0.547 GB, free: 1.297 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002514/0.4249, allocations: 34.55 kB / 0.5471 GB, free: 1.273 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.793e-05/0.425, allocations: 11.34 kB / 0.5471 GB, free: 1.27 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 1 (booleanStep.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,6,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002205/0.4252, allocations: 144 kB / 0.5472 GB, free: 1.133 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.705e-05/0.4253, allocations: 28.67 kB / 0.5472 GB, free: 1.117 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.615e-05/0.4254, allocations: 33.25 kB / 0.5473 GB, free: 1.086 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.4254, allocations: 4 kB / 0.5473 GB, free: 1.082 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.914e-05/0.4254, allocations: 7.938 kB / 0.5473 GB, free: 1.074 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.4254, allocations: 3.984 kB / 0.5473 GB, free: 1.07 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001634/0.427, allocations: 0.8951 MB / 0.5482 GB, free: 116 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.556e-06/0.4271, allocations: 0 / 0.5482 GB, free: 116 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.723e-05/0.4272, allocations: 19.98 kB / 0.5482 GB, free: 96 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008486/0.428, allocations: 237.5 kB / 0.5484 GB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.146e-05/0.4281, allocations: 4 kB / 0.5484 GB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003886/0.4319, allocations: 3.677 MB / 0.552 GB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.432, allocations: 0 / 0.552 GB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001016/0.433, allocations: 0.5445 MB / 0.5525 GB, free: 11.32 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001671/0.4332, allocations: 120.7 kB / 0.5527 GB, free: 11.19 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.64e-05/0.4332, allocations: 11.94 kB / 0.5527 GB, free: 11.18 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002433/0.4335, allocations: 27.98 kB / 0.5527 GB, free: 11.15 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.942e-05/0.4336, allocations: 27.95 kB / 0.5527 GB, free: 11.12 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.748e-05/0.4336, allocations: 4 kB / 0.5527 GB, free: 11.12 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001678/0.4338, allocations: 176.5 kB / 0.5529 GB, free: 10.95 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4338, allocations: 0 / 0.5529 GB, free: 10.95 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004865/0.4343, allocations: 111.8 kB / 0.553 GB, free: 10.84 MB / 414.1 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,6,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001365/0.4344, allocations: 103.2 kB / 0.5531 GB, free: 10.73 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001078/0.4355, allocations: 0.5594 MB / 0.5536 GB, free: 10.14 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.4355, allocations: 4.25 kB / 0.5536 GB, free: 10.14 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006003/0.4361, allocations: 441.1 kB / 0.5541 GB, free: 9.684 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003984/0.4365, allocations: 47.22 kB / 0.5541 GB, free: 9.641 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001053/0.4376, allocations: 0.5409 MB / 0.5546 GB, free: 9.066 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003318/0.4379, allocations: 0.7639 MB / 0.5554 GB, free: 8.277 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.842e-05/0.438, allocations: 19.44 kB / 0.5554 GB, free: 8.258 MB / 414.1 MB Notification: Performance of SimCode: time 3.8e-07/0.438, allocations: 0 / 0.5554 GB, free: 8.258 MB / 414.1 MB Notification: Performance of Templates: time 0.008102/0.4461, allocations: 5.583 MB / 0.5609 GB, free: 2.684 MB / 414.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Analog/Ideal/IdealTwoWaySwitches/IdealTwoWaySwitches.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches