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.001877/0.001877, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 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.00248/0.00248, allocations: 206.1 kB / 23.73 MB, free: 4.379 MB / 14.72 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.474/1.474, allocations: 230.6 MB / 257.5 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] 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.2252/0.2252, allocations: 46.95 MB / 360.9 MB, free: 4.035 MB / 286.1 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 0.002385/0.002385, allocations: 71.89 kB / 0.4961 GB, free: 7.711 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.338/0.3404, allocations: 66.03 MB / 0.5606 GB, free: 4.23 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004069/0.3444, allocations: 2.713 MB / 0.5632 GB, free: 1.504 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001135/0.3456, allocations: 0.6584 MB / 0.5639 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001216/0.3457, allocations: 4 kB / 0.5639 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001665/0.3459, allocations: 59.44 kB / 0.5639 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001739/0.346, allocations: 83.19 kB / 0.564 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001903/0.3462, allocations: 95.81 kB / 0.5641 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004875/0.3467, allocations: 414.1 kB / 0.5645 GB, free: 200 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002/0.3469, allocations: 95.33 kB / 0.5646 GB, free: 104 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001834/0.3471, allocations: 151.6 kB / 0.5647 GB, free: 15.95 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002239/0.3473, allocations: 171.2 kB / 0.5649 GB, free: 15.79 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.754e-05/0.3474, allocations: 32 kB / 0.5649 GB, free: 15.75 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.279e-05/0.3474, allocations: 36 kB / 0.565 GB, free: 15.72 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.401e-05/0.3475, allocations: 71.77 kB / 0.565 GB, free: 15.65 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001628/0.3477, allocations: 139.4 kB / 0.5652 GB, free: 15.51 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004263/0.3481, allocations: 394.4 kB / 0.5655 GB, free: 15.12 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.3481, allocations: 4 kB / 0.5655 GB, free: 15.12 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.153e-06/0.3481, allocations: 4 kB / 0.5656 GB, free: 15.12 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.552e-06/0.3481, allocations: 3.938 kB / 0.5656 GB, free: 15.11 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.001021/0.3491, allocations: 0.5715 MB / 0.5661 GB, free: 14.51 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/0.3492, allocations: 8.031 kB / 0.5661 GB, free: 14.5 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.986e-05/0.3493, allocations: 62.73 kB / 0.5662 GB, free: 14.43 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.631e-05/0.3493, allocations: 32.75 kB / 0.5662 GB, free: 14.4 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003862/0.3497, allocations: 214.7 kB / 0.5664 GB, free: 14.16 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.934e-05/0.3497, allocations: 21.03 kB / 0.5664 GB, free: 14.14 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.04e-05/0.3498, allocations: 24.38 kB / 0.5665 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006797/0.3505, allocations: 436.8 kB / 0.5669 GB, free: 13.66 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.352e-05/0.3505, allocations: 4 kB / 0.5669 GB, free: 13.65 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.213e-05/0.3505, allocations: 15.94 kB / 0.5669 GB, free: 13.64 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.498e-06/0.3505, allocations: 8 kB / 0.5669 GB, free: 13.63 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005106/0.351, allocations: 242.4 kB / 0.5671 GB, free: 13.39 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001988/0.353, allocations: 1.142 MB / 0.5682 GB, free: 12.18 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006627/0.3537, allocations: 290.8 kB / 0.5685 GB, free: 11.88 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003101/0.354, allocations: 141.2 kB / 0.5687 GB, free: 11.74 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.941e-05/0.354, allocations: 4.234 kB / 0.5687 GB, free: 11.74 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.182e-05/0.354, allocations: 34.8 kB / 0.5687 GB, free: 11.7 MB / 414.1 MB Notification: Performance of pre-optimization done (n=27): time 1.533e-06/0.354, allocations: 0 / 0.5687 GB, free: 11.7 MB / 414.1 MB Notification: Performance of matching and sorting (n=27): time 0.002819/0.3569, allocations: 0.8601 MB / 0.5695 GB, free: 10.82 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.478e-05/0.3569, allocations: 55.41 kB / 0.5696 GB, free: 10.76 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002732/0.3572, allocations: 249 kB / 0.5698 GB, free: 10.5 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.548e-05/0.3572, allocations: 29.7 kB / 0.5699 GB, free: 10.46 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000121/0.3573, allocations: 168.6 kB / 0.57 GB, free: 10.3 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.953e-05/0.3574, allocations: 91.22 kB / 0.5701 GB, free: 10.21 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.643e-05/0.3575, allocations: 53.66 kB / 0.5702 GB, free: 10.15 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.3577, allocations: 334.8 kB / 0.5705 GB, free: 9.812 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002346/0.3579, allocations: 103.9 kB / 0.5706 GB, free: 9.711 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002601/0.3581, allocations: 156.8 kB / 0.5707 GB, free: 9.543 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004521/0.3586, allocations: 248.7 kB / 0.571 GB, free: 9.285 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.3586, allocations: 0 / 0.571 GB, free: 9.285 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001111/0.3597, allocations: 498.7 kB / 0.5714 GB, free: 8.785 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.157e-05/0.3597, allocations: 8 kB / 0.5714 GB, free: 8.777 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.3597, allocations: 3.984 kB / 0.5714 GB, free: 8.773 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009492/0.3607, allocations: 229.5 kB / 0.5717 GB, free: 8.543 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001552/0.3608, allocations: 35.92 kB / 0.5717 GB, free: 8.508 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004203/0.3651, allocations: 3.454 MB / 0.5751 GB, free: 4.828 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000209/0.3653, allocations: 31.81 kB / 0.5751 GB, free: 4.797 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.234e-05/0.3653, allocations: 8 kB / 0.5751 GB, free: 4.789 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.0001794/0.3655, allocations: 153 kB / 0.5753 GB, free: 4.633 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.828e-05/0.3655, allocations: 31.81 kB / 0.5753 GB, free: 4.602 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.681e-05/0.3656, allocations: 30.97 kB / 0.5753 GB, free: 4.566 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.542e-06/0.3656, allocations: 7.984 kB / 0.5753 GB, free: 4.559 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.131e-05/0.3656, allocations: 3.938 kB / 0.5753 GB, free: 4.555 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.389e-06/0.3656, allocations: 3.938 kB / 0.5753 GB, free: 4.551 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001592/0.3672, allocations: 0.8172 MB / 0.5761 GB, free: 3.68 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.3672, allocations: 0 / 0.5761 GB, free: 3.68 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.193e-05/0.3673, allocations: 19.94 kB / 0.5762 GB, free: 3.66 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008505/0.3681, allocations: 233.5 kB / 0.5764 GB, free: 3.426 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.972e-05/0.3682, allocations: 8 kB / 0.5764 GB, free: 3.418 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004155/0.3723, allocations: 3.45 MB / 0.5798 GB, free: 15.74 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.3723, allocations: 0 / 0.5798 GB, free: 15.74 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001062/0.3734, allocations: 0.537 MB / 0.5803 GB, free: 15.18 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001093/0.3735, allocations: 47.72 kB / 0.5803 GB, free: 15.13 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.395e-05/0.3735, allocations: 4 kB / 0.5803 GB, free: 15.12 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002287/0.3738, allocations: 27.98 kB / 0.5804 GB, free: 15.1 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.701e-05/0.3738, allocations: 35.88 kB / 0.5804 GB, free: 15.06 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.617e-05/0.3739, allocations: 4 kB / 0.5804 GB, free: 15.06 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001764/0.374, allocations: 180.4 kB / 0.5806 GB, free: 14.89 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.374, allocations: 0 / 0.5806 GB, free: 14.89 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004652/0.3745, allocations: 103.9 kB / 0.5807 GB, free: 14.79 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.001363/0.3759, allocations: 1.069 MB / 0.5817 GB, free: 13.68 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001014/0.3769, allocations: 0.54 MB / 0.5822 GB, free: 13.12 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.99e-06/0.3769, allocations: 4 kB / 0.5822 GB, free: 13.11 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006396/0.3775, allocations: 417.8 kB / 0.5826 GB, free: 12.68 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000398/0.3779, allocations: 55.06 kB / 0.5827 GB, free: 12.63 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004754/0.3827, allocations: 3.045 MB / 0.5857 GB, free: 9.461 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001544/0.3828, allocations: 155.2 kB / 0.5858 GB, free: 9.293 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 9.776e-05/0.3829, allocations: 22.28 kB / 0.5858 GB, free: 9.27 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001205/0.383, allocations: 79.41 kB / 0.5859 GB, free: 9.191 MB / 430.1 MB Notification: Performance of SimCode: time 6.52e-07/0.383, allocations: 0 / 0.5859 GB, free: 9.191 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05423/0.4373, allocations: 8.308 MB / 0.594 GB, free: 1.098 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.25/11.69, allocations: 7.984 kB / 0.594 GB, free: 1.09 MB / 430.1 MB " [Timeout remaining time 648] (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/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_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: 14.69689335799194]