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.001332/0.001331, allocations: 117.7 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001527/0.001527, allocations: 212.8 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.379/1.379, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2395/0.2395, allocations: 46.11 MB / 345 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001386/0.001386, allocations: 79.86 kB / 482 MB, free: 4.078 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3031/0.3045, allocations: 62.43 MB / 0.5316 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.003907/0.3084, allocations: 2.925 MB / 0.5345 GB, free: 11.29 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001102/0.3096, allocations: 0.6853 MB / 0.5352 GB, free: 10.72 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001518/0.3097, allocations: 5.5 kB / 0.5352 GB, free: 10.72 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001962/0.3099, allocations: 56.94 kB / 0.5352 GB, free: 10.67 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000144/0.3101, allocations: 86.19 kB / 0.5353 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001769/0.3103, allocations: 94.73 kB / 0.5354 GB, free: 10.51 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000378/0.3107, allocations: 415.9 kB / 0.5358 GB, free: 10.26 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002471/0.3109, allocations: 120.2 kB / 0.5359 GB, free: 10.19 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001466/0.3111, allocations: 145.8 kB / 0.5361 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000212/0.3113, allocations: 165.6 kB / 0.5362 GB, free: 9.992 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.238e-05/0.3113, allocations: 34.19 kB / 0.5362 GB, free: 9.992 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.79e-05/0.3114, allocations: 38.75 kB / 0.5363 GB, free: 9.988 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.808e-05/0.3115, allocations: 75.16 kB / 0.5364 GB, free: 9.922 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001554/0.3116, allocations: 169.3 kB / 0.5365 GB, free: 9.809 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004072/0.312, allocations: 386.8 kB / 0.5369 GB, free: 9.531 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.3121, allocations: 0 / 0.5369 GB, free: 9.531 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.547e-06/0.3121, allocations: 1.188 kB / 0.5369 GB, free: 9.531 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.843e-06/0.3121, allocations: 3.938 kB / 0.5369 GB, free: 9.527 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.001019/0.3131, allocations: 0.6355 MB / 0.5375 GB, free: 8.98 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.371e-05/0.3131, allocations: 10.3 kB / 0.5375 GB, free: 8.98 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.109e-05/0.3132, allocations: 39 kB / 0.5376 GB, free: 8.961 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003774/0.3136, allocations: 276.8 kB / 0.5378 GB, free: 8.684 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.203e-05/0.3136, allocations: 24.03 kB / 0.5378 GB, free: 8.672 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.851e-05/0.3137, allocations: 25.38 kB / 0.5379 GB, free: 8.664 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005719/0.3143, allocations: 325.9 kB / 0.5382 GB, free: 8.453 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.529e-05/0.3143, allocations: 4 kB / 0.5382 GB, free: 8.449 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.246e-05/0.3144, allocations: 11.28 kB / 0.5382 GB, free: 8.441 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.248e-06/0.3144, allocations: 10.28 kB / 0.5382 GB, free: 8.438 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004703/0.3149, allocations: 237.8 kB / 0.5384 GB, free: 8.332 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00198/0.3169, allocations: 1.243 MB / 0.5396 GB, free: 7.309 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007721/0.3176, allocations: 479.9 kB / 0.5401 GB, free: 6.945 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003125/0.318, allocations: 158.9 kB / 0.5403 GB, free: 6.871 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.045e-05/0.318, allocations: 3.141 kB / 0.5403 GB, free: 6.871 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.357e-05/0.318, allocations: 36.67 kB / 0.5403 GB, free: 6.828 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 1.613e-06/0.318, allocations: 4 kB / 0.5403 GB, free: 6.824 MB / 398.1 MB Notification: Performance of matching and sorting (n=27): time 0.002988/0.321, allocations: 1.014 MB / 0.5413 GB, free: 6.211 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.269e-05/0.3211, allocations: 54.81 kB / 0.5413 GB, free: 6.148 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002386/0.3213, allocations: 239.8 kB / 0.5416 GB, free: 5.977 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.419e-05/0.3214, allocations: 27.98 kB / 0.5416 GB, free: 5.945 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.3215, allocations: 173.2 kB / 0.5418 GB, free: 5.785 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.357e-05/0.3216, allocations: 89.42 kB / 0.5418 GB, free: 5.707 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.646e-05/0.3217, allocations: 60.95 kB / 0.5419 GB, free: 5.66 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001172/0.3218, allocations: 332.3 kB / 0.5422 GB, free: 5.332 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002348/0.322, allocations: 97.42 kB / 0.5423 GB, free: 5.289 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00028/0.3223, allocations: 154.8 kB / 0.5425 GB, free: 5.184 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004566/0.3228, allocations: 241.2 kB / 0.5427 GB, free: 5.043 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3228, allocations: 4 kB / 0.5427 GB, free: 5.039 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.00118/0.324, allocations: 497.1 kB / 0.5432 GB, free: 4.773 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/0.324, allocations: 5.625 kB / 0.5432 GB, free: 4.773 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.324, allocations: 2.438 kB / 0.5432 GB, free: 4.773 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00103/0.3251, allocations: 242.5 kB / 0.5434 GB, free: 4.652 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001503/0.3252, allocations: 32.86 kB / 0.5434 GB, free: 4.645 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00416/0.3294, allocations: 3.689 MB / 0.547 GB, free: 1.262 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002874/0.3297, allocations: 35.45 kB / 0.5471 GB, free: 1.238 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.957e-05/0.3297, allocations: 7.531 kB / 0.5471 GB, free: 1.238 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.0001685/0.3299, allocations: 141.2 kB / 0.5472 GB, free: 1.102 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.206e-05/0.33, allocations: 29.58 kB / 0.5472 GB, free: 1.078 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.109e-05/0.33, allocations: 38.94 kB / 0.5473 GB, free: 1.039 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.3301, allocations: 0 / 0.5473 GB, free: 1.039 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.541e-05/0.3301, allocations: 7.938 kB / 0.5473 GB, free: 1.031 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.3301, allocations: 3.984 kB / 0.5473 GB, free: 1.027 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001665/0.3318, allocations: 0.8834 MB / 0.5482 GB, free: 84 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.3318, allocations: 4 kB / 0.5482 GB, free: 80 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.284e-05/0.3319, allocations: 15.98 kB / 0.5482 GB, free: 64 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009118/0.3328, allocations: 245.4 kB / 0.5484 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.602e-05/0.3328, allocations: 0 / 0.5484 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004064/0.3369, allocations: 3.685 MB / 0.552 GB, free: 11.85 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.3369, allocations: 3.938 kB / 0.552 GB, free: 11.85 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001093/0.338, allocations: 0.5368 MB / 0.5525 GB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001331/0.3382, allocations: 120.7 kB / 0.5527 GB, free: 11.15 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.256e-05/0.3382, allocations: 4 kB / 0.5527 GB, free: 11.14 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000249/0.3385, allocations: 23.98 kB / 0.5527 GB, free: 11.12 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000135/0.3386, allocations: 31.95 kB / 0.5527 GB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.452e-05/0.3387, allocations: 4 kB / 0.5527 GB, free: 11.09 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000153/0.3388, allocations: 180.5 kB / 0.5529 GB, free: 10.91 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3388, allocations: 0 / 0.5529 GB, free: 10.91 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004773/0.3393, allocations: 111.8 kB / 0.553 GB, free: 10.8 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.0001296/0.3394, allocations: 106.2 kB / 0.5531 GB, free: 10.7 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001103/0.3406, allocations: 0.5595 MB / 0.5536 GB, free: 10.11 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.3406, allocations: 0 / 0.5536 GB, free: 10.11 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005955/0.3412, allocations: 445.3 kB / 0.5541 GB, free: 9.648 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004122/0.3416, allocations: 46.39 kB / 0.5541 GB, free: 9.605 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009827/0.3426, allocations: 0.5412 MB / 0.5546 GB, free: 9.031 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003445/0.343, allocations: 0.7639 MB / 0.5554 GB, free: 8.242 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.901e-05/0.343, allocations: 19.44 kB / 0.5554 GB, free: 8.223 MB / 414.1 MB Notification: Performance of SimCode: time 5.41e-07/0.343, allocations: 3.938 kB / 0.5554 GB, free: 8.219 MB / 414.1 MB Notification: Performance of Templates: time 0.008144/0.3512, allocations: 5.581 MB / 0.5609 GB, free: 2.645 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