Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.0009001/0.0009001, allocations: 83.69 kB / 20.67 MB, free: 3.879 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.001597/0.001597, allocations: 170.3 kB / 23.95 MB, free: 0.6016 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.8579/0.8579, allocations: 177.1 MB / 204.3 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2261/0.2261, allocations: 32.79 MB / 293.5 MB, free: 1.242 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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_0_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 3.938 kB / 439.6 MB, free: 4.27 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.827e-05/1.982e-05, allocations: 2.844 kB / 439.6 MB, free: 4.266 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.002742/0.002762, allocations: 2.722 MB / 442.3 MB, free: 1.523 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009871/0.003749, allocations: 0.6621 MB / 443 MB, free: 0.8555 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001335/0.003882, allocations: 7.938 kB / 443 MB, free: 0.8477 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001286/0.004011, allocations: 51.5 kB / 443 MB, free: 0.7969 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001286/0.004139, allocations: 95.06 kB / 443.1 MB, free: 0.7031 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001611/0.004301, allocations: 99.78 kB / 443.2 MB, free: 0.6055 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003143/0.004615, allocations: 425.9 kB / 443.6 MB, free: 192 kB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001775/0.004792, allocations: 87.33 kB / 443.7 MB, free: 100 kB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1669/0.1717, allocations: 217.9 kB / 443.9 MB, free: 43.47 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001668/0.1719, allocations: 117.5 kB / 444 MB, free: 43.47 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 4.575e-05/0.172, allocations: 31.66 kB / 444.1 MB, free: 43.47 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.026e-05/0.172, allocations: 35.34 kB / 444.1 MB, free: 43.47 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 4.665e-05/0.172, allocations: 76.88 kB / 444.2 MB, free: 43.47 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 7.789e-05/0.1721, allocations: 123.5 kB / 444.3 MB, free: 43.47 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002985/0.1724, allocations: 410 kB / 444.7 MB, free: 43.45 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.1724, allocations: 2.062 kB / 444.7 MB, free: 43.45 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1724, allocations: 0 / 444.7 MB, free: 43.45 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.773e-06/0.1724, allocations: 0 / 444.7 MB, free: 43.45 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.0006512/0.1731, allocations: 0.5616 MB / 445.3 MB, free: 43.1 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.185e-05/0.1731, allocations: 13.86 kB / 445.3 MB, free: 43.09 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.197e-05/0.1732, allocations: 66.28 kB / 445.3 MB, free: 43.05 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.273e-05/0.1732, allocations: 36.58 kB / 445.4 MB, free: 43.04 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002849/0.1735, allocations: 213.8 kB / 445.6 MB, free: 42.89 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.727e-05/0.1735, allocations: 19.56 kB / 445.6 MB, free: 42.89 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.233e-05/0.1735, allocations: 29.59 kB / 445.6 MB, free: 42.89 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003549/0.1739, allocations: 426.6 kB / 446 MB, free: 42.7 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.1739, allocations: 5.969 kB / 446.1 MB, free: 42.7 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.105e-05/0.1739, allocations: 11.09 kB / 446.1 MB, free: 42.7 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.374e-06/0.1739, allocations: 9.719 kB / 446.1 MB, free: 42.7 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002726/0.1742, allocations: 242.9 kB / 446.3 MB, free: 42.69 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001058/0.1752, allocations: 1.138 MB / 447.4 MB, free: 42.15 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004084/0.1757, allocations: 289.8 kB / 447.7 MB, free: 42.12 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001734/0.1758, allocations: 136.7 kB / 447.9 MB, free: 42.11 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.53e-05/0.1758, allocations: 3.141 kB / 447.9 MB, free: 42.11 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.543e-05/0.1759, allocations: 41.7 kB / 447.9 MB, free: 42.06 MB / 410.7 MB Notification: Performance of pre-optimization done (n=27): time 1.603e-06/0.1759, allocations: 0 / 447.9 MB, free: 42.06 MB / 410.7 MB Notification: Performance of matching and sorting (n=27): time 0.001449/0.1773, allocations: 0.8592 MB / 448.8 MB, free: 41.86 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.071e-05/0.1773, allocations: 58.09 kB / 448.8 MB, free: 41.79 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000136/0.1775, allocations: 246 kB / 449.1 MB, free: 41.64 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.277e-05/0.1775, allocations: 32.48 kB / 449.1 MB, free: 41.6 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.265e-05/0.1775, allocations: 162 kB / 449.3 MB, free: 41.46 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.887e-05/0.1776, allocations: 95.97 kB / 449.3 MB, free: 41.39 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.492e-05/0.1776, allocations: 59.7 kB / 449.4 MB, free: 41.35 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.481e-05/0.1776, allocations: 335 kB / 449.7 MB, free: 41.02 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001282/0.1778, allocations: 98.23 kB / 449.8 MB, free: 40.99 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001347/0.1779, allocations: 159.5 kB / 450 MB, free: 40.91 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002475/0.1782, allocations: 246.1 kB / 450.2 MB, free: 40.79 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.1782, allocations: 7 kB / 450.2 MB, free: 40.79 MB / 410.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005594/0.1787, allocations: 482.9 kB / 450.7 MB, free: 40.61 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/0.1787, allocations: 7.938 kB / 450.7 MB, free: 40.61 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.189e-06/0.1787, allocations: 0 / 450.7 MB, free: 40.61 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004896/0.1792, allocations: 246.1 kB / 451 MB, free: 40.56 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.811e-05/0.1793, allocations: 25.98 kB / 451 MB, free: 40.56 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00185/0.1812, allocations: 3.451 MB / 454.4 MB, free: 37.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.932e-05/0.1813, allocations: 39.58 kB / 454.5 MB, free: 37.68 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.109e-05/0.1813, allocations: 6.094 kB / 454.5 MB, free: 37.68 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 8.293e-05/0.1813, allocations: 148.6 kB / 454.6 MB, free: 37.54 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.603e-05/0.1814, allocations: 27.73 kB / 454.6 MB, free: 37.53 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.446e-05/0.1814, allocations: 33.39 kB / 454.7 MB, free: 37.51 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.704e-06/0.1814, allocations: 3.312 kB / 454.7 MB, free: 37.51 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.1814, allocations: 3.094 kB / 454.7 MB, free: 37.51 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/0.1814, allocations: 3.281 kB / 454.7 MB, free: 37.51 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007895/0.1822, allocations: 0.8254 MB / 455.5 MB, free: 37.04 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.1822, allocations: 0 / 455.5 MB, free: 37.04 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.064e-05/0.1822, allocations: 15.98 kB / 455.5 MB, free: 37.04 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000408/0.1827, allocations: 234.1 kB / 455.8 MB, free: 36.99 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.093e-05/0.1827, allocations: 4 kB / 455.8 MB, free: 36.98 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001707/0.1844, allocations: 3.454 MB / 459.2 MB, free: 34.12 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1844, allocations: 0 / 459.2 MB, free: 34.12 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005146/0.1849, allocations: 0.5305 MB / 459.7 MB, free: 33.85 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.932e-05/0.1849, allocations: 43.92 kB / 459.8 MB, free: 33.82 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.653e-05/0.185, allocations: 7.094 kB / 459.8 MB, free: 33.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001061/0.1851, allocations: 30.64 kB / 459.8 MB, free: 33.81 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.852e-05/0.1851, allocations: 30.02 kB / 459.9 MB, free: 33.81 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.448e-06/0.1851, allocations: 9.219 kB / 459.9 MB, free: 33.8 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.331e-05/0.1852, allocations: 179.6 kB / 460 MB, free: 33.7 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1852, allocations: 0 / 460 MB, free: 33.7 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002805/0.1855, allocations: 107.1 kB / 460.1 MB, free: 33.68 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.000629/0.1861, allocations: 1.075 MB / 461.2 MB, free: 32.88 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0005384/0.1867, allocations: 0.5311 MB / 461.7 MB, free: 32.55 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.1867, allocations: 0 / 461.7 MB, free: 32.55 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002472/0.1869, allocations: 421 kB / 462.2 MB, free: 32.26 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002798/0.1872, allocations: 56.53 kB / 462.2 MB, free: 32.23 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002372/0.1896, allocations: 3.052 MB / 465.3 MB, free: 30.32 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.021e-05/0.1897, allocations: 161.1 kB / 465.4 MB, free: 30.24 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 6.712e-05/0.1897, allocations: 21.33 kB / 465.4 MB, free: 30.24 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.029e-05/0.1898, allocations: 73.03 kB / 465.5 MB, free: 30.18 MB / 410.7 MB Notification: Performance of SimCode: time 6.92e-07/0.1898, allocations: 4 kB / 465.5 MB, free: 30.18 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02536/0.2152, allocations: 8.366 MB / 473.9 MB, free: 28.64 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.97/7.185, allocations: 6.625 kB / 473.9 MB, free: 28.64 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches_fmu --startTime=0 --stopTime=1 --stepSize=0.00019988 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches.fmu > ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Analog/Ideal/IdealTwoWaySwitches/IdealTwoWaySwitches.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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.117953479290009]