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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001001/0.001001, allocations: 91.12 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001242/0.001242, allocations: 180.2 kB / 18.26 MB, free: 5.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.214/1.214, allocations: 223.3 MB / 242.3 MB, free: 216 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1639/0.1639, allocations: 44.25 MB / 337.7 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002701/0.0002701, allocations: 8 kB / 410.4 MB, free: 27.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08983/0.09011, allocations: 61.92 MB / 472.4 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.002528/0.09268, allocations: 2.582 MB / 474.9 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007629/0.09346, allocations: 0.6311 MB / 475.6 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001085/0.09358, allocations: 4 kB / 475.6 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001154/0.0937, allocations: 43.69 kB / 475.6 MB, free: 9.996 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001465/0.09385, allocations: 79.31 kB / 475.7 MB, free: 9.918 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001437/0.094, allocations: 79.91 kB / 475.8 MB, free: 9.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003222/0.09433, allocations: 394.3 kB / 476.2 MB, free: 9.453 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001848/0.09453, allocations: 99.81 kB / 476.3 MB, free: 9.355 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001147/0.09465, allocations: 127.6 kB / 476.4 MB, free: 9.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001525/0.09481, allocations: 143.4 kB / 476.5 MB, free: 9.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.256e-05/0.09486, allocations: 20 kB / 476.5 MB, free: 9.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.746e-05/0.0949, allocations: 23.94 kB / 476.6 MB, free: 9.047 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.579e-05/0.09495, allocations: 55.75 kB / 476.6 MB, free: 8.992 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001284/0.09509, allocations: 176.9 kB / 476.8 MB, free: 8.812 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002736/0.09537, allocations: 354.6 kB / 477.1 MB, free: 8.465 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.09538, allocations: 0 / 477.1 MB, free: 8.465 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.09539, allocations: 0 / 477.1 MB, free: 8.465 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.909e-06/0.0954, allocations: 0 / 477.1 MB, free: 8.465 MB / 350.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.0008113/0.09621, allocations: 0.6043 MB / 477.7 MB, free: 7.812 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.702e-05/0.09626, allocations: 12.03 kB / 477.8 MB, free: 7.801 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.302e-05/0.09632, allocations: 58.73 kB / 477.8 MB, free: 7.734 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.6e-05/0.09639, allocations: 32.56 kB / 477.8 MB, free: 7.703 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002652/0.09666, allocations: 276.1 kB / 478.1 MB, free: 7.391 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.937e-05/0.09668, allocations: 16.94 kB / 478.1 MB, free: 7.375 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.514e-05/0.09673, allocations: 32.38 kB / 478.2 MB, free: 7.344 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005425/0.09727, allocations: 332.6 kB / 478.5 MB, free: 7.004 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.848e-06/0.09729, allocations: 0 / 478.5 MB, free: 7.004 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.287e-05/0.09733, allocations: 16 kB / 478.5 MB, free: 6.988 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.014e-05/0.09735, allocations: 12 kB / 478.5 MB, free: 6.977 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004815/0.09784, allocations: 254.1 kB / 478.8 MB, free: 6.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001796/0.09964, allocations: 1.277 MB / 480 MB, free: 5.371 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007089/0.1004, allocations: 495.5 kB / 480.5 MB, free: 4.844 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002959/0.1007, allocations: 176.4 kB / 480.7 MB, free: 4.672 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.726e-05/0.1007, allocations: 4.234 kB / 480.7 MB, free: 4.668 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.582e-05/0.1007, allocations: 42.8 kB / 480.7 MB, free: 4.617 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.382e-06/0.1007, allocations: 0 / 480.7 MB, free: 4.617 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.00297/0.1037, allocations: 1.182 MB / 481.9 MB, free: 3.387 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.844e-05/0.1037, allocations: 55.41 kB / 482 MB, free: 3.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002074/0.104, allocations: 241 kB / 482.2 MB, free: 3.074 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.441e-05/0.104, allocations: 33.64 kB / 482.2 MB, free: 3.035 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.485e-05/0.1041, allocations: 172.2 kB / 482.4 MB, free: 2.863 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.733e-05/0.1041, allocations: 86.73 kB / 482.5 MB, free: 2.777 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.124e-05/0.1042, allocations: 33.64 kB / 482.5 MB, free: 2.738 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.23e-05/0.1043, allocations: 338.8 kB / 482.9 MB, free: 2.398 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002289/0.1045, allocations: 108 kB / 483 MB, free: 2.293 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002504/0.1048, allocations: 156.2 kB / 483.1 MB, free: 2.125 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004569/0.1053, allocations: 264.7 kB / 483.4 MB, free: 1.852 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.063e-06/0.1053, allocations: 0 / 483.4 MB, free: 1.852 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001115/0.1064, allocations: 0.5376 MB / 483.9 MB, free: 1.301 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.232e-05/0.1064, allocations: 4 kB / 483.9 MB, free: 1.297 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.1064, allocations: 0 / 483.9 MB, free: 1.297 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009519/0.1074, allocations: 285.5 kB / 484.2 MB, free: 1.012 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001347/0.1075, allocations: 31.92 kB / 484.2 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003531/0.1111, allocations: 3.534 MB / 487.8 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001922/0.1113, allocations: 39.67 kB / 487.8 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.82e-05/0.1113, allocations: 12 kB / 487.8 MB, free: 13.13 MB / 366.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.000133/0.1114, allocations: 141.8 kB / 488 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.815e-05/0.1115, allocations: 23.72 kB / 488 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.694e-05/0.1116, allocations: 34.86 kB / 488 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.1116, allocations: 4 kB / 488 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.72e-06/0.1116, allocations: 4 kB / 488 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.1116, allocations: 0 / 488 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001512/0.1131, allocations: 0.9444 MB / 489 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.073e-06/0.1131, allocations: 4 kB / 489 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.999e-05/0.1132, allocations: 23.98 kB / 489 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008727/0.1141, allocations: 273.5 kB / 489.3 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.543e-05/0.1141, allocations: 12 kB / 489.3 MB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003458/0.1176, allocations: 3.511 MB / 492.8 MB, free: 7.816 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1176, allocations: 0 / 492.8 MB, free: 7.816 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001072/0.1187, allocations: 0.5914 MB / 493.4 MB, free: 7.203 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001079/0.1188, allocations: 132.7 kB / 493.5 MB, free: 7.055 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.766e-05/0.1188, allocations: 0 / 493.5 MB, free: 7.055 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002317/0.1191, allocations: 31.98 kB / 493.5 MB, free: 7.023 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.777e-05/0.1191, allocations: 31.89 kB / 493.6 MB, free: 6.992 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.024e-05/0.1192, allocations: 11.94 kB / 493.6 MB, free: 6.98 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000143/0.1193, allocations: 176.5 kB / 493.7 MB, free: 6.812 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1193, allocations: 3.938 kB / 493.7 MB, free: 6.809 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003718/0.1197, allocations: 107.8 kB / 493.9 MB, free: 6.703 MB / 366.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.001394/0.1211, allocations: 1.128 MB / 495 MB, free: 5.543 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009176/0.122, allocations: 0.5792 MB / 495.6 MB, free: 4.938 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.122, allocations: 4 kB / 495.6 MB, free: 4.934 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005685/0.1226, allocations: 441.3 kB / 496 MB, free: 4.477 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003774/0.123, allocations: 44.42 kB / 496 MB, free: 4.434 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004249/0.1273, allocations: 3.275 MB / 499.3 MB, free: 1.031 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002746/0.1275, allocations: 0.7638 MB / 0.4884 GB, free: 248 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.989e-05/0.1276, allocations: 26.28 kB / 0.4884 GB, free: 224 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.791e-05/0.1277, allocations: 75.41 kB / 0.4885 GB, free: 148 kB / 366.1 MB Notification: Performance of SimCode: time 3e-07/0.1277, allocations: 0 / 0.4885 GB, free: 148 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01689/0.1446, allocations: 6.517 MB / 0.4948 GB, free: 9.832 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001708/0.1448, allocations: 251.7 kB / 0.4951 GB, free: 9.562 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.754/1.899, allocations: 0 / 0.4951 GB, free: 9.562 MB / 382.1 MB (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 --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) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Analog/Ideal/IdealTwoWaySwitches/IdealTwoWaySwitches.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches