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.0008676/0.0008676, allocations: 83.69 kB / 20.67 MB, free: 3.887 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.0009179/0.0009179, allocations: 170 kB / 23.95 MB, free: 0.6094 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.8868/0.8868, allocations: 177.1 MB / 204.3 MB, free: 5.73 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.2575/0.2575, allocations: 34.26 MB / 294.9 MB, free: 0.7188 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: "" <> buildModelFMU(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.503e-06/1.503e-06, allocations: 0 / 442.2 MB, free: 1.691 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.627e-05/1.777e-05, allocations: 2.281 kB / 442.2 MB, free: 1.688 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.1732/0.1732, allocations: 2.721 MB / 444.9 MB, free: 43.06 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009229/0.1741, allocations: 0.6616 MB / 445.5 MB, free: 42.79 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001423/0.1743, allocations: 10.25 kB / 445.6 MB, free: 42.79 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001429/0.1744, allocations: 53.56 kB / 445.6 MB, free: 42.76 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001145/0.1745, allocations: 93.5 kB / 445.7 MB, free: 42.69 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001487/0.1747, allocations: 97.77 kB / 445.8 MB, free: 42.68 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002709/0.1749, allocations: 425.5 kB / 446.2 MB, free: 42.57 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001737/0.1751, allocations: 77.52 kB / 446.3 MB, free: 42.56 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001481/0.1753, allocations: 235.4 kB / 446.5 MB, free: 42.51 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001108/0.1754, allocations: 118 kB / 446.6 MB, free: 42.47 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 4.327e-05/0.1754, allocations: 34.97 kB / 446.7 MB, free: 42.47 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.814e-05/0.1754, allocations: 32.09 kB / 446.7 MB, free: 42.47 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 3.383e-05/0.1755, allocations: 72.92 kB / 446.8 MB, free: 42.43 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 7.091e-05/0.1755, allocations: 121.1 kB / 446.9 MB, free: 42.37 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002497/0.1758, allocations: 413 kB / 447.3 MB, free: 42.22 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.1758, allocations: 0 / 447.3 MB, free: 42.22 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1758, allocations: 0 / 447.3 MB, free: 42.22 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.1758, allocations: 0 / 447.3 MB, free: 42.22 MB / 410.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.0006318/0.1764, allocations: 0.5636 MB / 447.8 MB, free: 41.82 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/0.1765, allocations: 11.25 kB / 447.9 MB, free: 41.82 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.135e-05/0.1765, allocations: 61.95 kB / 447.9 MB, free: 41.76 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.981e-05/0.1766, allocations: 38.33 kB / 448 MB, free: 41.74 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002817/0.1769, allocations: 213 kB / 448.2 MB, free: 41.56 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.917e-05/0.1769, allocations: 26.7 kB / 448.2 MB, free: 41.55 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.28e-05/0.1769, allocations: 25.59 kB / 448.2 MB, free: 41.54 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003683/0.1773, allocations: 427.2 kB / 448.6 MB, free: 41.26 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/0.1773, allocations: 8.125 kB / 448.6 MB, free: 41.25 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.15e-05/0.1773, allocations: 20.28 kB / 448.7 MB, free: 41.23 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.153e-06/0.1773, allocations: 8.594 kB / 448.7 MB, free: 41.23 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002776/0.1776, allocations: 237.9 kB / 448.9 MB, free: 41.16 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001074/0.1787, allocations: 1.137 MB / 450 MB, free: 40.36 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003889/0.1791, allocations: 284.6 kB / 450.3 MB, free: 40.25 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001625/0.1792, allocations: 143.4 kB / 450.5 MB, free: 40.2 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.5e-05/0.1792, allocations: 3.078 kB / 450.5 MB, free: 40.2 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.791e-05/0.1793, allocations: 45.61 kB / 450.5 MB, free: 40.15 MB / 410.7 MB Notification: Performance of pre-optimization done (n=27): time 1.603e-06/0.1793, allocations: 0 / 450.5 MB, free: 40.15 MB / 410.7 MB Notification: Performance of matching and sorting (n=27): time 0.001435/0.1807, allocations: 0.8507 MB / 451.4 MB, free: 39.94 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.159e-05/0.1807, allocations: 58.16 kB / 451.4 MB, free: 39.87 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001406/0.1809, allocations: 248.7 kB / 451.7 MB, free: 39.73 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.372e-05/0.1809, allocations: 29.7 kB / 451.7 MB, free: 39.69 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.215e-05/0.1809, allocations: 168 kB / 451.8 MB, free: 39.55 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.124e-05/0.181, allocations: 97 kB / 451.9 MB, free: 39.47 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.686e-05/0.181, allocations: 59.94 kB / 452 MB, free: 39.43 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.52e-05/0.181, allocations: 337.4 kB / 452.3 MB, free: 39.11 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001241/0.1812, allocations: 98.38 kB / 452.4 MB, free: 39.07 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001316/0.1813, allocations: 153.5 kB / 452.6 MB, free: 39 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000252/0.1816, allocations: 254.4 kB / 452.8 MB, free: 38.86 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.1816, allocations: 2.906 kB / 452.8 MB, free: 38.86 MB / 410.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000562/0.1821, allocations: 480.5 kB / 453.3 MB, free: 38.68 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/0.1821, allocations: 5.75 kB / 453.3 MB, free: 38.68 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.1821, allocations: 10.2 kB / 453.3 MB, free: 38.67 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004966/0.1826, allocations: 232.8 kB / 453.5 MB, free: 38.62 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.342e-05/0.1827, allocations: 33.47 kB / 453.6 MB, free: 38.62 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001922/0.1846, allocations: 3.452 MB / 457 MB, free: 35.72 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001103/0.1847, allocations: 34.58 kB / 457.1 MB, free: 35.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.132e-05/0.1848, allocations: 9.844 kB / 457.1 MB, free: 35.7 MB / 410.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.435e-05/0.1849, allocations: 147.7 kB / 457.2 MB, free: 35.56 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.727e-05/0.1849, allocations: 27.44 kB / 457.2 MB, free: 35.55 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.746e-05/0.1849, allocations: 40.72 kB / 457.3 MB, free: 35.51 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.1849, allocations: 2.844 kB / 457.3 MB, free: 35.51 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.015e-05/0.1849, allocations: 4.031 kB / 457.3 MB, free: 35.51 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-06/0.1849, allocations: 0 / 457.3 MB, free: 35.51 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008141/0.1857, allocations: 0.8138 MB / 458.1 MB, free: 35.04 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.1857, allocations: 0 / 458.1 MB, free: 35.04 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.221e-05/0.1858, allocations: 21.06 kB / 458.1 MB, free: 35.03 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004054/0.1862, allocations: 233 kB / 458.3 MB, free: 34.98 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.1e-05/0.1862, allocations: 4 kB / 458.4 MB, free: 34.98 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001749/0.188, allocations: 3.457 MB / 461.8 MB, free: 32.07 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.188, allocations: 0 / 461.8 MB, free: 32.07 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005338/0.1885, allocations: 0.5309 MB / 462.3 MB, free: 31.8 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.417e-05/0.1886, allocations: 47.06 kB / 462.4 MB, free: 31.77 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.633e-05/0.1886, allocations: 4 kB / 462.4 MB, free: 31.77 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000107/0.1887, allocations: 26.55 kB / 462.4 MB, free: 31.77 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.146e-05/0.1887, allocations: 29.95 kB / 462.4 MB, free: 31.76 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.105e-05/0.1887, allocations: 15.22 kB / 462.5 MB, free: 31.75 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.205e-05/0.1888, allocations: 179.7 kB / 462.6 MB, free: 31.64 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1888, allocations: 0 / 462.6 MB, free: 31.64 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002905/0.1891, allocations: 105.2 kB / 462.7 MB, free: 31.62 MB / 410.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.0007268/0.1898, allocations: 1.071 MB / 463.8 MB, free: 30.82 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0006204/0.1905, allocations: 0.5374 MB / 464.3 MB, free: 30.48 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1905, allocations: 0 / 464.3 MB, free: 30.48 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000261/0.1907, allocations: 425.4 kB / 464.8 MB, free: 30.18 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002897/0.191, allocations: 45.78 kB / 464.8 MB, free: 30.17 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002514/0.1935, allocations: 3.04 MB / 467.8 MB, free: 28.23 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001253/0.1937, allocations: 157.8 kB / 468 MB, free: 28.14 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 8.889e-05/0.1937, allocations: 22.08 kB / 468 MB, free: 28.14 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.604e-05/0.1938, allocations: 82.7 kB / 468.1 MB, free: 28.08 MB / 410.7 MB Notification: Performance of SimCode: time 1.172e-06/0.1938, allocations: 0 / 468.1 MB, free: 28.08 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02657/0.2204, allocations: 8.368 MB / 476.5 MB, free: 26.54 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.96/7.18, allocations: 0 / 476.5 MB, free: 26.54 MB / 410.7 MB " [Timeout remaining time 653] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches_fmu --startTime=0 --stopTime=1 --stepSize=0.00019988 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches.fmu > ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) [Timeout 52.5] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_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: 9.201215560548007]