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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001231/0.001231, allocations: 109.1 kB / 21.19 MB, free: 0.7617 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001354/0.001354, allocations: 217.7 kB / 24.5 MB, free: 4.133 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.382/1.382, allocations: 230.5 MB / 258.1 MB, free: 8.199 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2153/0.2153, allocations: 46.93 MB / 361.5 MB, free: 4.309 MB / 286.1 MB " [Timeout remaining time 180] 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=5003,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=5003,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002416/0.002416, allocations: 75.88 kB / 0.4974 GB, free: 7.293 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2993/0.3017, allocations: 66.07 MB / 0.5619 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004032/0.3057, allocations: 2.949 MB / 0.5648 GB, free: 1.285 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001153/0.3069, allocations: 0.696 MB / 0.5655 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001212/0.307, allocations: 7.938 kB / 0.5655 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001532/0.3072, allocations: 55.5 kB / 0.5656 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001602/0.3073, allocations: 91.12 kB / 0.5657 GB, free: 444 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000168/0.3075, allocations: 95.86 kB / 0.5657 GB, free: 348 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004308/0.3079, allocations: 410.1 kB / 0.5661 GB, free: 15.94 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001875/0.3081, allocations: 99.31 kB / 0.5662 GB, free: 15.84 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001675/0.3083, allocations: 159.5 kB / 0.5664 GB, free: 15.68 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002193/0.3085, allocations: 163.3 kB / 0.5665 GB, free: 15.52 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.485e-05/0.3085, allocations: 36 kB / 0.5666 GB, free: 15.49 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.72e-05/0.3086, allocations: 36 kB / 0.5666 GB, free: 15.45 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.536e-05/0.3087, allocations: 75.75 kB / 0.5667 GB, free: 15.38 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001519/0.3088, allocations: 171.2 kB / 0.5668 GB, free: 15.21 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004106/0.3092, allocations: 394.1 kB / 0.5672 GB, free: 14.83 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.3092, allocations: 0 / 0.5672 GB, free: 14.83 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.3092, allocations: 0 / 0.5672 GB, free: 14.83 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.367e-06/0.3092, allocations: 0 / 0.5672 GB, free: 14.83 MB / 414.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.0009462/0.3102, allocations: 0.5638 MB / 0.5678 GB, free: 14.23 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.959e-05/0.3102, allocations: 8.031 kB / 0.5678 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.336e-05/0.3103, allocations: 32.75 kB / 0.5678 GB, free: 14.2 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003593/0.3107, allocations: 223.5 kB / 0.568 GB, free: 13.95 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.718e-05/0.3107, allocations: 21.03 kB / 0.568 GB, free: 13.93 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.954e-05/0.3107, allocations: 24.38 kB / 0.5681 GB, free: 13.91 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005717/0.3113, allocations: 330.2 kB / 0.5684 GB, free: 13.57 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/0.3113, allocations: 4 kB / 0.5684 GB, free: 13.57 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.659e-05/0.3113, allocations: 12 kB / 0.5684 GB, free: 13.55 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.055e-05/0.3113, allocations: 11.98 kB / 0.5684 GB, free: 13.54 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000492/0.3118, allocations: 242.4 kB / 0.5686 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001953/0.3138, allocations: 1.212 MB / 0.5698 GB, free: 12.02 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006522/0.3144, allocations: 293.5 kB / 0.5701 GB, free: 11.73 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002865/0.3147, allocations: 145.2 kB / 0.5702 GB, free: 11.58 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.055e-05/0.3147, allocations: 240 / 0.5702 GB, free: 11.58 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.297e-05/0.3148, allocations: 42.8 kB / 0.5703 GB, free: 11.53 MB / 414.1 MB Notification: Performance of pre-optimization done (n=27): time 1.062e-06/0.3148, allocations: 4 kB / 0.5703 GB, free: 11.53 MB / 414.1 MB Notification: Performance of matching and sorting (n=27): time 0.002652/0.3174, allocations: 0.8523 MB / 0.5711 GB, free: 10.66 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.947e-05/0.3175, allocations: 55.41 kB / 0.5712 GB, free: 10.6 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002602/0.3177, allocations: 245.1 kB / 0.5714 GB, free: 10.34 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.311e-05/0.3178, allocations: 25.7 kB / 0.5714 GB, free: 10.31 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001122/0.3179, allocations: 172.5 kB / 0.5716 GB, free: 10.14 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.475e-05/0.318, allocations: 99.16 kB / 0.5717 GB, free: 10.04 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.923e-05/0.318, allocations: 57.7 kB / 0.5717 GB, free: 9.98 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.3182, allocations: 330.8 kB / 0.5721 GB, free: 9.648 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002295/0.3184, allocations: 103.9 kB / 0.5722 GB, free: 9.547 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002653/0.3187, allocations: 151.9 kB / 0.5723 GB, free: 9.383 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004447/0.3191, allocations: 240.2 kB / 0.5725 GB, free: 9.133 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/0.3191, allocations: 7.984 kB / 0.5725 GB, free: 9.125 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001079/0.3202, allocations: 494.7 kB / 0.573 GB, free: 8.629 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.3202, allocations: 10.19 kB / 0.573 GB, free: 8.621 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.3202, allocations: 0 / 0.573 GB, free: 8.621 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008846/0.3211, allocations: 237.5 kB / 0.5732 GB, free: 8.383 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001431/0.3213, allocations: 35.92 kB / 0.5733 GB, free: 8.348 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004122/0.3254, allocations: 3.474 MB / 0.5767 GB, free: 4.648 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001955/0.3256, allocations: 31.86 kB / 0.5767 GB, free: 4.617 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.895e-05/0.3256, allocations: 12 kB / 0.5767 GB, free: 4.605 MB / 414.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.0001705/0.3258, allocations: 149.1 kB / 0.5769 GB, free: 4.453 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.509e-05/0.3258, allocations: 27.86 kB / 0.5769 GB, free: 4.426 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.914e-05/0.3259, allocations: 35.03 kB / 0.5769 GB, free: 4.387 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.576e-06/0.3259, allocations: 4 kB / 0.5769 GB, free: 4.383 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.147e-05/0.3259, allocations: 7.922 kB / 0.5769 GB, free: 4.375 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.3259, allocations: 0 / 0.5769 GB, free: 4.375 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001546/0.3275, allocations: 0.8553 MB / 0.5778 GB, free: 3.465 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.3275, allocations: 3.938 kB / 0.5778 GB, free: 3.461 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.911e-05/0.3275, allocations: 23.91 kB / 0.5778 GB, free: 3.438 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008166/0.3284, allocations: 233.5 kB / 0.578 GB, free: 3.203 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.017e-05/0.3284, allocations: 7.984 kB / 0.578 GB, free: 3.195 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003921/0.3323, allocations: 3.474 MB / 0.5814 GB, free: 15.49 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.3323, allocations: 0 / 0.5814 GB, free: 15.49 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001033/0.3333, allocations: 0.5291 MB / 0.5819 GB, free: 14.94 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001049/0.3334, allocations: 47.72 kB / 0.582 GB, free: 14.89 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.174e-05/0.3335, allocations: 7.984 kB / 0.582 GB, free: 14.88 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002169/0.3337, allocations: 23.98 kB / 0.582 GB, free: 14.86 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.4e-05/0.3338, allocations: 31.88 kB / 0.582 GB, free: 14.83 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.767e-05/0.3338, allocations: 15.94 kB / 0.5821 GB, free: 14.81 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001687/0.334, allocations: 176.5 kB / 0.5822 GB, free: 14.64 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.334, allocations: 0 / 0.5822 GB, free: 14.64 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004192/0.3344, allocations: 111.8 kB / 0.5823 GB, free: 14.54 MB / 430.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.0001119/0.3345, allocations: 99.25 kB / 0.5824 GB, free: 14.43 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0009663/0.3355, allocations: 0.5326 MB / 0.5829 GB, free: 13.87 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.3355, allocations: 0 / 0.5829 GB, free: 13.87 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005973/0.3361, allocations: 429.1 kB / 0.5833 GB, free: 13.43 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003519/0.3364, allocations: 52.78 kB / 0.5834 GB, free: 13.38 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001031/0.3374, allocations: 0.5486 MB / 0.5839 GB, free: 12.79 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004104/0.3379, allocations: 0.7639 MB / 0.5847 GB, free: 12 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.809e-05/0.3379, allocations: 23.44 kB / 0.5847 GB, free: 11.98 MB / 430.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3379, allocations: 0 / 0.5847 GB, free: 11.98 MB / 430.1 MB Notification: Performance of Templates: time 0.007731/0.3456, allocations: 5.587 MB / 0.5902 GB, free: 6.398 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.734285811893642]