Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001075/0.001075, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001189/0.001189, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.318/1.318, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.196/0.196, allocations: 46.1 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00149/0.00149, allocations: 71.08 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09084/0.09236, allocations: 62.45 MB / 480.1 MB, free: 5.195 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.00389/0.09628, allocations: 2.912 MB / 483 MB, free: 2.262 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001198/0.0975, allocations: 0.6856 MB / 483.7 MB, free: 1.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002017/0.09773, allocations: 4 kB / 483.7 MB, free: 1.566 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001809/0.09794, allocations: 59.44 kB / 483.8 MB, free: 1.508 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002076/0.09816, allocations: 87.19 kB / 483.9 MB, free: 1.422 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001894/0.09836, allocations: 91.86 kB / 484 MB, free: 1.332 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003682/0.09873, allocations: 410.2 kB / 484.4 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002134/0.09896, allocations: 127.2 kB / 484.5 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000155/0.09912, allocations: 151.5 kB / 484.6 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001876/0.09932, allocations: 171.2 kB / 484.8 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.571e-05/0.09938, allocations: 36 kB / 484.8 MB, free: 468 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.769e-05/0.09944, allocations: 32 kB / 484.9 MB, free: 436 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.744e-05/0.09952, allocations: 71.77 kB / 484.9 MB, free: 364 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001801/0.0997, allocations: 171.2 kB / 485.1 MB, free: 192 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003989/0.1001, allocations: 382.7 kB / 485.5 MB, free: 15.81 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.1001, allocations: 4 kB / 485.5 MB, free: 15.81 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.552e-06/0.1001, allocations: 4 kB / 485.5 MB, free: 15.8 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.574e-05/0.1002, allocations: 0 / 485.5 MB, free: 15.8 MB / 366.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.001129/0.1013, allocations: 0.6237 MB / 486.1 MB, free: 15.13 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.937e-05/0.1013, allocations: 9.109 kB / 486.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.405e-05/0.1014, allocations: 62.73 kB / 486.2 MB, free: 15.05 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.858e-05/0.1015, allocations: 40.47 kB / 486.2 MB, free: 15.01 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003433/0.1019, allocations: 272.1 kB / 486.5 MB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.706e-05/0.1019, allocations: 24.88 kB / 486.5 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.903e-05/0.1019, allocations: 24.38 kB / 486.5 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006037/0.1026, allocations: 336.6 kB / 486.9 MB, free: 14.32 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.251e-05/0.1026, allocations: 0 / 486.9 MB, free: 14.32 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.98e-05/0.1026, allocations: 8 kB / 486.9 MB, free: 14.31 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.247e-06/0.1026, allocations: 8 kB / 486.9 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000505/0.1031, allocations: 246.1 kB / 487.1 MB, free: 14.06 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001932/0.1051, allocations: 1.249 MB / 488.4 MB, free: 12.73 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007358/0.1058, allocations: 471.7 kB / 488.8 MB, free: 12.23 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003278/0.1062, allocations: 171.9 kB / 489 MB, free: 12.06 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.194e-05/0.1062, allocations: 4.234 kB / 489 MB, free: 12.05 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.864e-05/0.1063, allocations: 38.73 kB / 489 MB, free: 12.01 MB / 366.1 MB Notification: Performance of pre-optimization done (n=27): time 1.683e-06/0.1063, allocations: 0 / 489 MB, free: 12.01 MB / 366.1 MB Notification: Performance of matching and sorting (n=27): time 0.002888/0.1092, allocations: 1.018 MB / 490.1 MB, free: 10.94 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.522e-05/0.1092, allocations: 55.41 kB / 490.1 MB, free: 10.88 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002462/0.1095, allocations: 241 kB / 490.4 MB, free: 10.63 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.737e-05/0.1095, allocations: 33.7 kB / 490.4 MB, free: 10.59 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001005/0.1096, allocations: 168.3 kB / 490.5 MB, free: 10.43 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.019e-05/0.1097, allocations: 94.64 kB / 490.6 MB, free: 10.33 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.81e-05/0.1098, allocations: 53.7 kB / 490.7 MB, free: 10.27 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001056/0.1099, allocations: 330.8 kB / 491 MB, free: 9.941 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002514/0.1101, allocations: 99.94 kB / 491.1 MB, free: 9.844 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002433/0.1104, allocations: 152.1 kB / 491.3 MB, free: 9.68 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004499/0.1109, allocations: 240.2 kB / 491.5 MB, free: 9.43 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.1109, allocations: 3.984 kB / 491.5 MB, free: 9.426 MB / 366.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001098/0.112, allocations: 495.1 kB / 492 MB, free: 8.93 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.112, allocations: 6.656 kB / 492 MB, free: 8.926 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.112, allocations: 4 kB / 492 MB, free: 8.922 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009395/0.113, allocations: 241.4 kB / 492.2 MB, free: 8.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001468/0.1131, allocations: 35.92 kB / 492.3 MB, free: 8.645 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003921/0.1171, allocations: 3.692 MB / 496 MB, free: 4.672 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002092/0.1173, allocations: 35.67 kB / 496 MB, free: 4.637 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.725e-05/0.1173, allocations: 8 kB / 496 MB, free: 4.629 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.0001354/0.1175, allocations: 137.8 kB / 496.1 MB, free: 4.484 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.556e-05/0.1175, allocations: 27.72 kB / 496.2 MB, free: 4.457 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.801e-05/0.1176, allocations: 38.92 kB / 496.2 MB, free: 4.418 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.1176, allocations: 4 kB / 496.2 MB, free: 4.414 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.297e-06/0.1176, allocations: 3.938 kB / 496.2 MB, free: 4.41 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.1176, allocations: 4 kB / 496.2 MB, free: 4.406 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001534/0.1192, allocations: 0.8822 MB / 497.1 MB, free: 3.461 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.534e-06/0.1192, allocations: 0 / 497.1 MB, free: 3.461 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.409e-05/0.1193, allocations: 23.92 kB / 497.1 MB, free: 3.438 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008527/0.1201, allocations: 237.9 kB / 497.4 MB, free: 3.199 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.701e-05/0.1202, allocations: 4 kB / 497.4 MB, free: 3.195 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003761/0.1239, allocations: 3.692 MB / 0.4893 GB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.1239, allocations: 0 / 0.4893 GB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001026/0.125, allocations: 0.5291 MB / 0.4898 GB, free: 14.67 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001126/0.1251, allocations: 120.7 kB / 0.4899 GB, free: 14.53 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.552e-05/0.1251, allocations: 12 kB / 0.4899 GB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002339/0.1254, allocations: 23.97 kB / 0.49 GB, free: 14.5 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.849e-05/0.1255, allocations: 27.97 kB / 0.49 GB, free: 14.47 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.5e-05/0.1255, allocations: 4 kB / 0.49 GB, free: 14.46 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001511/0.1256, allocations: 176.4 kB / 0.4902 GB, free: 14.29 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1256, allocations: 3.938 kB / 0.4902 GB, free: 14.29 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004166/0.1261, allocations: 115.8 kB / 0.4903 GB, free: 14.18 MB / 382.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.001278/0.1274, allocations: 1.076 MB / 0.4913 GB, free: 13.07 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009562/0.1283, allocations: 0.5595 MB / 0.4919 GB, free: 12.48 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.277e-06/0.1283, allocations: 256 / 0.4919 GB, free: 12.48 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005672/0.1289, allocations: 441 kB / 0.4923 GB, free: 12.03 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004039/0.1293, allocations: 48.81 kB / 0.4923 GB, free: 11.98 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004255/0.1336, allocations: 3.034 MB / 0.4953 GB, free: 8.832 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002874/0.1339, allocations: 0.7675 MB / 0.4961 GB, free: 8.039 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.564e-05/0.134, allocations: 26.28 kB / 0.4961 GB, free: 8.012 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001026/0.1341, allocations: 79.41 kB / 0.4962 GB, free: 7.934 MB / 382.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1341, allocations: 0 / 0.4962 GB, free: 7.934 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0279/0.162, allocations: 7.062 MB / 0.5031 GB, free: 1.031 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.824/8.986, allocations: 6.094 kB / 0.5031 GB, free: 1.027 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches