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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001727/0.001727, allocations: 117.6 kB / 18.5 MB, free: 4.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001953/0.001953, allocations: 190.9 kB / 21.44 MB, free: 1.645 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.562/1.562, allocations: 225.6 MB / 249.8 MB, free: 3.621 MB / 190.1 MB " [Timeout remaining time 178] 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.2593/0.2593, allocations: 44.91 MB / 349.6 MB, free: 1.719 MB / 270.1 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.001898/0.001898, allocations: 60.12 kB / 491.8 MB, free: 29.95 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/0.1323, allocations: 64.26 MB / 0.543 GB, free: 4.125 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004417/0.1367, allocations: 2.926 MB / 0.5458 GB, free: 1.176 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001189/0.1379, allocations: 0.6621 MB / 0.5465 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001393/0.138, allocations: 4 kB / 0.5465 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001828/0.1382, allocations: 55.44 kB / 0.5466 GB, free: 460 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001705/0.1384, allocations: 91.17 kB / 0.5466 GB, free: 368 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001903/0.1385, allocations: 91.88 kB / 0.5467 GB, free: 276 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004687/0.139, allocations: 410.3 kB / 0.5471 GB, free: 15.86 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002055/0.1392, allocations: 86.88 kB / 0.5472 GB, free: 15.78 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001606/0.1394, allocations: 147.5 kB / 0.5473 GB, free: 15.64 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002044/0.1396, allocations: 159.4 kB / 0.5475 GB, free: 15.48 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.332e-05/0.1396, allocations: 39.94 kB / 0.5475 GB, free: 15.44 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.083e-05/0.1397, allocations: 32 kB / 0.5476 GB, free: 15.41 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.519e-05/0.1398, allocations: 75.75 kB / 0.5476 GB, free: 15.34 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001611/0.1399, allocations: 171.2 kB / 0.5478 GB, free: 15.17 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004466/0.1404, allocations: 390.4 kB / 0.5482 GB, free: 14.79 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1404, allocations: 0 / 0.5482 GB, free: 14.79 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1404, allocations: 4 kB / 0.5482 GB, free: 14.78 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.395e-06/0.1404, allocations: 4 kB / 0.5482 GB, free: 14.78 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.001039/0.1414, allocations: 0.639 MB / 0.5488 GB, free: 14.09 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.635e-05/0.1415, allocations: 8.031 kB / 0.5488 GB, free: 14.08 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.172e-05/0.1415, allocations: 66.72 kB / 0.5489 GB, free: 14.01 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.287e-05/0.1416, allocations: 40.7 kB / 0.5489 GB, free: 13.97 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004251/0.142, allocations: 268.4 kB / 0.5492 GB, free: 13.66 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.991e-05/0.1421, allocations: 24.94 kB / 0.5492 GB, free: 13.64 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.222e-05/0.1421, allocations: 28.38 kB / 0.5492 GB, free: 13.61 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005958/0.1427, allocations: 324.6 kB / 0.5495 GB, free: 13.28 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/0.1427, allocations: 0 / 0.5495 GB, free: 13.28 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.312e-05/0.1427, allocations: 12 kB / 0.5495 GB, free: 13.27 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.014e-05/0.1427, allocations: 8 kB / 0.5495 GB, free: 13.26 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005101/0.1433, allocations: 246.1 kB / 0.5498 GB, free: 13.02 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002019/0.1453, allocations: 1.25 MB / 0.551 GB, free: 11.69 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007799/0.1461, allocations: 433.3 kB / 0.5514 GB, free: 11.22 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003438/0.1464, allocations: 149.2 kB / 0.5516 GB, free: 11.07 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.867e-05/0.1464, allocations: 4.234 kB / 0.5516 GB, free: 11.07 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.263e-05/0.1465, allocations: 38.78 kB / 0.5516 GB, free: 11.02 MB / 414.1 MB Notification: Performance of pre-optimization done (n=27): time 2.004e-06/0.1465, allocations: 0 / 0.5516 GB, free: 11.02 MB / 414.1 MB Notification: Performance of matching and sorting (n=27): time 0.002822/0.1493, allocations: 1.008 MB / 0.5526 GB, free: 9.969 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.092e-05/0.1493, allocations: 59.41 kB / 0.5526 GB, free: 9.898 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002759/0.1496, allocations: 248.9 kB / 0.5529 GB, free: 9.645 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.953e-05/0.1496, allocations: 29.7 kB / 0.5529 GB, free: 9.609 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001246/0.1498, allocations: 168.6 kB / 0.5531 GB, free: 9.441 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.337e-05/0.1498, allocations: 95.16 kB / 0.5532 GB, free: 9.348 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.935e-05/0.1499, allocations: 53.7 kB / 0.5532 GB, free: 9.289 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001636/0.1501, allocations: 330.8 kB / 0.5535 GB, free: 8.957 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002314/0.1503, allocations: 104 kB / 0.5536 GB, free: 8.855 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000257/0.1506, allocations: 148.1 kB / 0.5538 GB, free: 8.695 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004571/0.151, allocations: 244.2 kB / 0.554 GB, free: 8.441 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.594e-06/0.1511, allocations: 0 / 0.554 GB, free: 8.441 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001111/0.1522, allocations: 490.7 kB / 0.5545 GB, free: 7.949 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.91e-05/0.1522, allocations: 8 kB / 0.5545 GB, free: 7.941 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.1522, allocations: 0 / 0.5545 GB, free: 7.941 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009116/0.1531, allocations: 237.5 kB / 0.5547 GB, free: 7.703 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001487/0.1532, allocations: 31.92 kB / 0.5547 GB, free: 7.672 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004384/0.1576, allocations: 3.689 MB / 0.5583 GB, free: 3.703 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002349/0.1579, allocations: 39.75 kB / 0.5584 GB, free: 3.664 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.269e-05/0.1579, allocations: 16.06 kB / 0.5584 GB, free: 3.648 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.0001902/0.1581, allocations: 137.8 kB / 0.5585 GB, free: 3.504 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.54e-05/0.1581, allocations: 27.8 kB / 0.5585 GB, free: 3.477 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.076e-05/0.1582, allocations: 38.81 kB / 0.5586 GB, free: 3.438 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.1582, allocations: 0 / 0.5586 GB, free: 3.438 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.495e-05/0.1582, allocations: 7.938 kB / 0.5586 GB, free: 3.43 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.1582, allocations: 7.969 kB / 0.5586 GB, free: 3.422 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001628/0.1598, allocations: 0.8808 MB / 0.5595 GB, free: 2.48 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.1599, allocations: 4 kB / 0.5595 GB, free: 2.477 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001058/0.16, allocations: 15.98 kB / 0.5595 GB, free: 2.461 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008197/0.1608, allocations: 233.4 kB / 0.5597 GB, free: 2.227 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.692e-05/0.1608, allocations: 11.94 kB / 0.5597 GB, free: 2.215 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004346/0.1651, allocations: 3.693 MB / 0.5633 GB, free: 14.24 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.1651, allocations: 0 / 0.5633 GB, free: 14.24 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001057/0.1662, allocations: 0.5261 MB / 0.5638 GB, free: 13.69 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001463/0.1663, allocations: 124.9 kB / 0.5639 GB, free: 13.55 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.165e-05/0.1664, allocations: 4 kB / 0.564 GB, free: 13.55 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002219/0.1666, allocations: 31.97 kB / 0.564 GB, free: 13.52 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.263e-05/0.1667, allocations: 23.97 kB / 0.564 GB, free: 13.49 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.727e-05/0.1667, allocations: 8 kB / 0.564 GB, free: 13.48 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001772/0.1669, allocations: 176.4 kB / 0.5642 GB, free: 13.31 MB / 430.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1669, allocations: 0 / 0.5642 GB, free: 13.31 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004439/0.1673, allocations: 107.9 kB / 0.5643 GB, free: 13.21 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.001423/0.1688, allocations: 1.077 MB / 0.5653 GB, free: 12.1 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001088/0.1698, allocations: 0.5401 MB / 0.5659 GB, free: 11.53 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.1698, allocations: 0 / 0.5659 GB, free: 11.53 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006334/0.1705, allocations: 429.2 kB / 0.5663 GB, free: 11.09 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003974/0.1709, allocations: 52.39 kB / 0.5663 GB, free: 11.04 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005132/0.176, allocations: 3.024 MB / 0.5693 GB, free: 7.887 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004682/0.1765, allocations: 0.7677 MB / 0.57 GB, free: 7.094 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001256/0.1766, allocations: 22.23 kB / 0.57 GB, free: 7.074 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001249/0.1767, allocations: 79.41 kB / 0.5701 GB, free: 6.996 MB / 430.1 MB Notification: Performance of SimCode: time 1.613e-06/0.1767, allocations: 0 / 0.5701 GB, free: 6.996 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04888/0.2256, allocations: 7.25 MB / 0.5772 GB, free: 15.93 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.43/10.66, allocations: 19.2 kB / 0.5772 GB, free: 15.92 MB / 446.1 MB " [Timeout remaining time 649] (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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Analog/Ideal/IdealTwoWaySwitches/IdealTwoWaySwitches.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 14.037084293086082]