Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001058/0.001058, allocations: 80.31 kB / 22.21 MB, free: 2.289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001097/0.001097, allocations: 172.4 kB / 25.61 MB, free: 8.902 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9592/0.9592, allocations: 177.1 MB / 206 MB, free: 4.496 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.1374/0.1374, allocations: 34.26 MB / 296.8 MB, free: 13.91 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.283e-06/1.283e-06, allocations: 0 / 379.3 MB, free: 23.42 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.074e-05/1.202e-05, allocations: 3.625 kB / 379.3 MB, free: 23.41 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.002141/0.002153, allocations: 2.904 MB / 382.2 MB, free: 20.49 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007265/0.00288, allocations: 0.666 MB / 382.8 MB, free: 19.82 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001069/0.002986, allocations: 8 kB / 382.8 MB, free: 19.81 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001263/0.003113, allocations: 51.5 kB / 382.9 MB, free: 19.76 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001008/0.003214, allocations: 99.06 kB / 383 MB, free: 19.66 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001183/0.003332, allocations: 91.84 kB / 383.1 MB, free: 19.57 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002089/0.003541, allocations: 418.1 kB / 383.5 MB, free: 19.16 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001296/0.00367, allocations: 95.25 kB / 383.6 MB, free: 19.07 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001323/0.003803, allocations: 235.5 kB / 383.8 MB, free: 18.84 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001071/0.00391, allocations: 119.7 kB / 383.9 MB, free: 18.72 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 3.159e-05/0.003941, allocations: 35.98 kB / 384 MB, free: 18.68 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.611e-05/0.003968, allocations: 36 kB / 384 MB, free: 18.65 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 3.62e-05/0.004004, allocations: 75.73 kB / 384.1 MB, free: 18.57 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 7.647e-05/0.00408, allocations: 115.8 kB / 384.2 MB, free: 18.46 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001924/0.004273, allocations: 263.1 kB / 384.4 MB, free: 18.2 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.653e-06/0.004274, allocations: 0 / 384.4 MB, free: 18.2 MB / 314.7 MB Notification: Performance of FrontEnd: time 6.71e-07/0.004275, allocations: 0 / 384.4 MB, free: 18.2 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.94e-06/0.00428, allocations: 0 / 384.4 MB, free: 18.2 MB / 314.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.0005346/0.004815, allocations: 0.6676 MB / 385.1 MB, free: 17.5 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.942e-05/0.004844, allocations: 8.031 kB / 385.1 MB, free: 17.49 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.929e-05/0.004903, allocations: 68.7 kB / 385.2 MB, free: 17.43 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000172/0.005075, allocations: 214.5 kB / 385.4 MB, free: 17.19 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.977e-05/0.005095, allocations: 17.03 kB / 385.4 MB, free: 17.18 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.249e-05/0.005118, allocations: 28.38 kB / 385.4 MB, free: 17.15 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002246/0.005342, allocations: 358.4 kB / 385.8 MB, free: 16.75 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.005352, allocations: 192 / 385.8 MB, free: 16.75 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.722e-05/0.00537, allocations: 12.38 kB / 385.8 MB, free: 16.74 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.005376, allocations: 7.938 kB / 385.8 MB, free: 16.73 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001051/0.005482, allocations: 96.45 kB / 385.9 MB, free: 16.64 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009971/0.006479, allocations: 1.136 MB / 387 MB, free: 15.44 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002788/0.006757, allocations: 216.2 kB / 387.3 MB, free: 15.22 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001004/0.006858, allocations: 87.06 kB / 387.3 MB, free: 15.14 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.585e-05/0.006874, allocations: 8.234 kB / 387.3 MB, free: 15.13 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.049e-05/0.006894, allocations: 37.61 kB / 387.4 MB, free: 15.08 MB / 314.7 MB Notification: Performance of pre-optimization done (n=27): time 1.433e-06/0.006896, allocations: 0 / 387.4 MB, free: 15.08 MB / 314.7 MB Notification: Performance of matching and sorting (n=27): time 0.00111/0.008005, allocations: 0.5775 MB / 388 MB, free: 14.49 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.332e-05/0.008029, allocations: 59.39 kB / 388 MB, free: 14.42 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001199/0.008149, allocations: 258.3 kB / 388.3 MB, free: 14.15 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.448e-05/0.008163, allocations: 33.7 kB / 388.3 MB, free: 14.11 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.767e-05/0.008231, allocations: 219.2 kB / 388.5 MB, free: 13.89 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.263e-05/0.008273, allocations: 99.14 kB / 388.6 MB, free: 13.8 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.8e-05/0.008331, allocations: 51.34 kB / 388.7 MB, free: 13.74 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.333e-05/0.008395, allocations: 0.5117 MB / 389.2 MB, free: 13.21 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.559e-05/0.00844, allocations: 31.97 kB / 389.2 MB, free: 13.18 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.332e-05/0.008514, allocations: 103 kB / 389.3 MB, free: 13.06 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001224/0.008636, allocations: 150.9 kB / 389.5 MB, free: 12.89 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.716e-06/0.008639, allocations: 0 / 389.5 MB, free: 12.89 MB / 314.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003751/0.009014, allocations: 324.4 kB / 389.8 MB, free: 12.56 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/0.009029, allocations: 4 kB / 389.8 MB, free: 12.56 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.009034, allocations: 0 / 389.8 MB, free: 12.56 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004596/0.009494, allocations: 179.2 kB / 390 MB, free: 12.38 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.478e-05/0.009578, allocations: 39.86 kB / 390 MB, free: 12.34 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001672/0.01125, allocations: 3.9 MB / 393.9 MB, free: 8.207 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.305e-05/0.01134, allocations: 31.83 kB / 393.9 MB, free: 8.176 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.102e-05/0.01135, allocations: 4 kB / 393.9 MB, free: 8.172 MB / 314.7 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 8.393e-05/0.01144, allocations: 172.5 kB / 394.1 MB, free: 7.992 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.925e-05/0.01148, allocations: 35.89 kB / 394.1 MB, free: 7.957 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.974e-05/0.01151, allocations: 38.59 kB / 394.2 MB, free: 7.914 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.01151, allocations: 3.984 kB / 394.2 MB, free: 7.91 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/0.01152, allocations: 4 kB / 394.2 MB, free: 7.906 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.01152, allocations: 0 / 394.2 MB, free: 7.906 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005495/0.01207, allocations: 0.6145 MB / 394.8 MB, free: 7.25 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.01207, allocations: 0 / 394.8 MB, free: 7.25 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.029e-05/0.01211, allocations: 23.92 kB / 394.8 MB, free: 7.227 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003443/0.01246, allocations: 171.2 kB / 395 MB, free: 7.051 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.316e-06/0.01247, allocations: 4 kB / 395 MB, free: 7.047 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001207/0.01367, allocations: 3.9 MB / 398.9 MB, free: 2.918 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.01367, allocations: 0 / 398.9 MB, free: 2.918 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003216/0.014, allocations: 439.7 kB / 399.3 MB, free: 2.461 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.109e-05/0.01405, allocations: 59.64 kB / 399.4 MB, free: 2.402 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.586e-05/0.01406, allocations: 7.984 kB / 399.4 MB, free: 2.395 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.595e-05/0.01416, allocations: 23.98 kB / 399.4 MB, free: 2.371 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.674e-05/0.01422, allocations: 27.94 kB / 399.4 MB, free: 2.344 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.508e-06/0.01422, allocations: 8 kB / 399.4 MB, free: 2.336 MB / 314.7 MB Notification: Performance of sorting global known variables: time 4.578e-05/0.01427, allocations: 172.5 kB / 399.6 MB, free: 2.168 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01427, allocations: 0 / 399.6 MB, free: 2.168 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002474/0.01452, allocations: 107.9 kB / 399.7 MB, free: 2.062 MB / 314.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 () * 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 6.166e-05/0.01458, allocations: 103.2 kB / 399.8 MB, free: 1.953 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003599/0.01494, allocations: 0.5457 MB / 400.4 MB, free: 1.371 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.01494, allocations: 8.062 kB / 400.4 MB, free: 1.363 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001906/0.01513, allocations: 494.9 kB / 400.8 MB, free: 0.8398 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002211/0.01535, allocations: 48.66 kB / 400.9 MB, free: 0.793 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005324/0.01589, allocations: 490.7 kB / 401.4 MB, free: 288 kB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.974e-05/0.01593, allocations: 96.61 kB / 401.5 MB, free: 172 kB / 314.7 MB Notification: Performance of simCode: alias equations: time 4.947e-05/0.01597, allocations: 18.3 kB / 401.5 MB, free: 152 kB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.109e-05/0.01607, allocations: 118.2 kB / 401.6 MB, free: 32 kB / 314.7 MB Notification: Performance of SimCode: time 5.11e-07/0.01607, allocations: 0 / 401.6 MB, free: 32 kB / 314.7 MB Notification: Performance of Templates: time 0.006358/0.02242, allocations: 5.158 MB / 406.8 MB, free: 10.95 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & ./ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Electrical/Analog/Ideal/IdealTwoWaySwitches/IdealTwoWaySwitches.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.205912741832435]