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.0009862/0.0009862, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.0009826/0.0009826, allocations: 164.8 kB / 24.99 MB, free: 8.758 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 1.075/1.075, allocations: 177.1 MB / 205.3 MB, free: 5.598 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.2696/0.2696, allocations: 34.26 MB / 296 MB, free: 0.7773 MB / 266.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 2.034e-06/2.034e-06, allocations: 0 / 378 MB, free: 2.988 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.771e-05/2.975e-05, allocations: 2.312 kB / 378 MB, free: 2.984 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.003015/0.003044, allocations: 2.934 MB / 380.9 MB, free: 32 kB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.000916/0.00396, allocations: 0.6814 MB / 381.6 MB, free: 15.34 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001155/0.004076, allocations: 11.94 kB / 381.6 MB, free: 15.33 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001377/0.004214, allocations: 59.44 kB / 381.7 MB, free: 15.27 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001106/0.004324, allocations: 95.06 kB / 381.8 MB, free: 15.18 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001346/0.004459, allocations: 95.84 kB / 381.9 MB, free: 15.09 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002766/0.004735, allocations: 414.1 kB / 382.3 MB, free: 14.68 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000163/0.004898, allocations: 87.34 kB / 382.4 MB, free: 14.59 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001566/0.005055, allocations: 227.6 kB / 382.6 MB, free: 14.37 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001584/0.005213, allocations: 119.7 kB / 382.7 MB, free: 14.25 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 5.018e-05/0.005263, allocations: 32 kB / 382.7 MB, free: 14.22 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.778e-05/0.005301, allocations: 36 kB / 382.8 MB, free: 14.18 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 4.82e-05/0.005349, allocations: 75.73 kB / 382.8 MB, free: 14.11 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 8.823e-05/0.005438, allocations: 119.7 kB / 383 MB, free: 13.99 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002434/0.005681, allocations: 271 kB / 383.2 MB, free: 13.73 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.005684, allocations: 0 / 383.2 MB, free: 13.73 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.005685, allocations: 0 / 383.2 MB, free: 13.73 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.168e-06/0.005689, allocations: 0 / 383.2 MB, free: 13.73 MB / 362.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.000629/0.006318, allocations: 0.652 MB / 383.9 MB, free: 13.04 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.49e-05/0.006353, allocations: 16.03 kB / 383.9 MB, free: 13.02 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.165e-05/0.006425, allocations: 56.7 kB / 383.9 MB, free: 12.97 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002235/0.006648, allocations: 229.1 kB / 384.2 MB, free: 12.72 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.199e-05/0.00668, allocations: 21.03 kB / 384.2 MB, free: 12.7 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.659e-05/0.006707, allocations: 28.38 kB / 384.2 MB, free: 12.67 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003624/0.00707, allocations: 370.5 kB / 384.6 MB, free: 12.26 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.487e-06/0.007079, allocations: 192 / 384.6 MB, free: 12.26 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.156e-05/0.007101, allocations: 12.38 kB / 384.6 MB, free: 12.25 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.508e-06/0.00711, allocations: 7.938 kB / 384.6 MB, free: 12.24 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001901/0.0073, allocations: 131.8 kB / 384.7 MB, free: 12.12 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00125/0.00855, allocations: 1.163 MB / 385.9 MB, free: 10.89 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000345/0.008895, allocations: 245.2 kB / 386.1 MB, free: 10.64 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001364/0.009031, allocations: 100.1 kB / 386.2 MB, free: 10.54 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.211e-05/0.009044, allocations: 4.234 kB / 386.2 MB, free: 10.54 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.185e-05/0.009065, allocations: 37.62 kB / 386.3 MB, free: 10.49 MB / 362.7 MB Notification: Performance of pre-optimization done (n=27): time 1.433e-06/0.009067, allocations: 0 / 386.3 MB, free: 10.49 MB / 362.7 MB Notification: Performance of matching and sorting (n=27): time 0.00113/0.0102, allocations: 0.6081 MB / 386.9 MB, free: 9.867 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.423e-05/0.01022, allocations: 55.41 kB / 386.9 MB, free: 9.801 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001482/0.01037, allocations: 267.4 kB / 387.2 MB, free: 9.523 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.806e-05/0.01039, allocations: 33.69 kB / 387.2 MB, free: 9.484 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.042e-05/0.01047, allocations: 215.3 kB / 387.4 MB, free: 9.27 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000173/0.01064, allocations: 99.16 kB / 387.5 MB, free: 9.172 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.965e-05/0.0107, allocations: 59.31 kB / 387.6 MB, free: 9.105 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001116/0.01081, allocations: 0.5079 MB / 388.1 MB, free: 8.586 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.149e-05/0.01088, allocations: 43.97 kB / 388.1 MB, free: 8.543 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001074/0.01099, allocations: 111.1 kB / 388.3 MB, free: 8.414 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001719/0.01116, allocations: 162.4 kB / 388.4 MB, free: 8.234 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.01117, allocations: 0 / 388.4 MB, free: 8.234 MB / 362.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004195/0.01158, allocations: 336.5 kB / 388.7 MB, free: 7.891 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/0.0116, allocations: 8 kB / 388.7 MB, free: 7.883 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-06/0.0116, allocations: 0 / 388.7 MB, free: 7.883 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004831/0.01209, allocations: 187.2 kB / 388.9 MB, free: 7.691 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.664e-05/0.01218, allocations: 31.98 kB / 389 MB, free: 7.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002238/0.01442, allocations: 3.993 MB / 393 MB, free: 3.422 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.288e-05/0.0145, allocations: 31.83 kB / 393 MB, free: 3.391 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.173e-05/0.01451, allocations: 8 kB / 393 MB, free: 3.383 MB / 362.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 9.827e-05/0.01461, allocations: 176.5 kB / 393.2 MB, free: 3.199 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.855e-05/0.01465, allocations: 35.8 kB / 393.2 MB, free: 3.164 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.772e-05/0.01468, allocations: 30.64 kB / 393.2 MB, free: 3.133 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.01468, allocations: 4 kB / 393.2 MB, free: 3.129 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.01469, allocations: 4 kB / 393.2 MB, free: 3.125 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.01469, allocations: 0 / 393.2 MB, free: 3.125 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006867/0.01538, allocations: 0.6842 MB / 393.9 MB, free: 2.391 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.01538, allocations: 3.938 kB / 393.9 MB, free: 2.387 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.04e-05/0.01542, allocations: 12 kB / 393.9 MB, free: 2.375 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003928/0.01581, allocations: 175.2 kB / 394.1 MB, free: 2.195 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.149e-05/0.01583, allocations: 8 kB / 394.1 MB, free: 2.188 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002007/0.01783, allocations: 3.993 MB / 398.1 MB, free: 13.95 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.01783, allocations: 0 / 398.1 MB, free: 13.95 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004232/0.01826, allocations: 461 kB / 398.6 MB, free: 13.47 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.507e-05/0.01831, allocations: 43.77 kB / 398.6 MB, free: 13.43 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.486e-05/0.01833, allocations: 4 kB / 398.6 MB, free: 13.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.564e-05/0.01842, allocations: 27.92 kB / 398.6 MB, free: 13.4 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.555e-05/0.01849, allocations: 35.88 kB / 398.7 MB, free: 13.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.047e-06/0.0185, allocations: 4 kB / 398.7 MB, free: 13.36 MB / 378.7 MB Notification: Performance of sorting global known variables: time 8.178e-05/0.01858, allocations: 179.1 kB / 398.8 MB, free: 13.18 MB / 378.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01858, allocations: 0 / 398.8 MB, free: 13.18 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002532/0.01883, allocations: 115.8 kB / 399 MB, free: 13.07 MB / 378.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 0.0001082/0.01894, allocations: 107.2 kB / 399.1 MB, free: 12.95 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005515/0.01949, allocations: 0.5646 MB / 399.6 MB, free: 12.35 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.01949, allocations: 4 kB / 399.6 MB, free: 12.35 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000375/0.01987, allocations: 0.4911 MB / 400.1 MB, free: 11.82 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002549/0.02012, allocations: 46.48 kB / 400.2 MB, free: 11.77 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007538/0.02088, allocations: 486.3 kB / 400.6 MB, free: 11.27 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.953e-05/0.02094, allocations: 96.61 kB / 400.7 MB, free: 11.16 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.382e-05/0.02099, allocations: 22.28 kB / 400.8 MB, free: 11.14 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.54e-05/0.02103, allocations: 20.44 kB / 400.8 MB, free: 11.12 MB / 378.7 MB Notification: Performance of SimCode: time 9.31e-07/0.02103, allocations: 0 / 400.8 MB, free: 11.12 MB / 378.7 MB Notification: Performance of Templates: time 0.006568/0.0276, allocations: 4.761 MB / 405.5 MB, free: 6.414 MB / 378.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.3645284748636186]