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.0008131/0.0008131, allocations: 93.45 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000871/0.000871, allocations: 201.3 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.317/1.317, allocations: 227.7 MB / 246.8 MB, free: 11.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1881/0.1881, allocations: 46.19 MB / 345.2 MB, free: 11.41 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002419/0.0002419, allocations: 8 kB / 419.6 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1006, allocations: 63.56 MB / 483.2 MB, free: 4.074 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.00284/0.1035, allocations: 2.588 MB / 485.8 MB, free: 1.469 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001233/0.1048, allocations: 0.6701 MB / 486.4 MB, free: 0.793 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001984/0.105, allocations: 7.938 kB / 486.4 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001632/0.1052, allocations: 51.62 kB / 486.5 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000218/0.1054, allocations: 71.38 kB / 486.6 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000204/0.1056, allocations: 79.91 kB / 486.6 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003834/0.106, allocations: 394.2 kB / 487 MB, free: 204 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001996/0.1062, allocations: 103.8 kB / 487.1 MB, free: 104 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001751/0.1064, allocations: 131.5 kB / 487.3 MB, free: 15.97 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001833/0.1066, allocations: 147.3 kB / 487.4 MB, free: 15.83 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.054e-05/0.1066, allocations: 20 kB / 487.4 MB, free: 15.81 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.306e-05/0.1067, allocations: 20 kB / 487.4 MB, free: 15.79 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.96e-05/0.1067, allocations: 55.75 kB / 487.5 MB, free: 15.73 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001471/0.1069, allocations: 173 kB / 487.7 MB, free: 15.56 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002934/0.1072, allocations: 358.6 kB / 488 MB, free: 15.21 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.868e-06/0.1072, allocations: 0 / 488 MB, free: 15.21 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1072, allocations: 4 kB / 488 MB, free: 15.2 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.186e-06/0.1072, allocations: 0 / 488 MB, free: 15.2 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.0009092/0.1081, allocations: 0.5965 MB / 488.6 MB, free: 14.55 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.138e-05/0.1082, allocations: 16.81 kB / 488.6 MB, free: 14.54 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.416e-05/0.1083, allocations: 58.73 kB / 488.7 MB, free: 14.47 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.853e-05/0.1083, allocations: 36.55 kB / 488.7 MB, free: 14.44 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002935/0.1086, allocations: 268.2 kB / 489 MB, free: 14.14 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.412e-05/0.1087, allocations: 20.92 kB / 489 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.031e-05/0.1087, allocations: 28.38 kB / 489 MB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005864/0.1093, allocations: 340.6 kB / 489.4 MB, free: 13.75 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.898e-06/0.1093, allocations: 0 / 489.4 MB, free: 13.75 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.305e-05/0.1094, allocations: 20 kB / 489.4 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.747e-06/0.1094, allocations: 8 kB / 489.4 MB, free: 13.72 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005188/0.1099, allocations: 258.1 kB / 489.7 MB, free: 13.46 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001952/0.1119, allocations: 1.277 MB / 490.9 MB, free: 12.11 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007583/0.1126, allocations: 497.2 kB / 491.4 MB, free: 11.57 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003096/0.113, allocations: 171.9 kB / 491.6 MB, free: 11.41 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.788e-05/0.113, allocations: 4.234 kB / 491.6 MB, free: 11.4 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.278e-05/0.113, allocations: 38.8 kB / 491.6 MB, free: 11.36 MB / 366.1 MB Notification: Performance of pre-optimization done (n=27): time 1.433e-06/0.113, allocations: 0 / 491.6 MB, free: 11.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=27): time 0.003105/0.1161, allocations: 1.176 MB / 492.8 MB, free: 10.13 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.329e-05/0.1162, allocations: 55.41 kB / 492.9 MB, free: 10.07 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002262/0.1164, allocations: 245 kB / 493.1 MB, free: 9.82 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.557e-05/0.1164, allocations: 29.7 kB / 493.1 MB, free: 9.785 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.399e-05/0.1165, allocations: 168.3 kB / 493.3 MB, free: 9.617 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.174e-05/0.1166, allocations: 86.73 kB / 493.4 MB, free: 9.531 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.556e-05/0.1167, allocations: 33.7 kB / 493.4 MB, free: 9.492 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001011/0.1168, allocations: 338.8 kB / 493.7 MB, free: 9.152 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002461/0.117, allocations: 111.9 kB / 493.8 MB, free: 9.043 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002606/0.1173, allocations: 160 kB / 494 MB, free: 8.871 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004791/0.1178, allocations: 260.7 kB / 494.3 MB, free: 8.602 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.1178, allocations: 4 kB / 494.3 MB, free: 8.598 MB / 366.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001186/0.119, allocations: 0.5338 MB / 494.8 MB, free: 8.051 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.119, allocations: 6.5 kB / 494.8 MB, free: 8.047 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.685e-06/0.119, allocations: 3.984 kB / 494.8 MB, free: 8.043 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001021/0.1201, allocations: 289.5 kB / 495.1 MB, free: 7.754 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001389/0.1202, allocations: 27.98 kB / 495.1 MB, free: 7.727 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003769/0.124, allocations: 3.519 MB / 498.6 MB, free: 3.941 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002141/0.1242, allocations: 43.73 kB / 498.7 MB, free: 3.898 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.057e-05/0.1242, allocations: 12 kB / 498.7 MB, free: 3.887 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.0001373/0.1244, allocations: 141.7 kB / 498.8 MB, free: 3.738 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.332e-05/0.1244, allocations: 23.72 kB / 498.8 MB, free: 3.715 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.061e-05/0.1245, allocations: 34.86 kB / 498.9 MB, free: 3.68 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.017e-06/0.1245, allocations: 8 kB / 498.9 MB, free: 3.672 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.369e-05/0.1246, allocations: 4 kB / 498.9 MB, free: 3.668 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.576e-06/0.1246, allocations: 0 / 498.9 MB, free: 3.668 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001626/0.1262, allocations: 0.9572 MB / 499.9 MB, free: 2.648 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.908e-06/0.1262, allocations: 0 / 499.9 MB, free: 2.648 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.245e-05/0.1263, allocations: 19.94 kB / 499.9 MB, free: 2.629 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009333/0.1272, allocations: 285.5 kB / 0.4884 GB, free: 2.344 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.708e-05/0.1273, allocations: 4 kB / 0.4884 GB, free: 2.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003718/0.131, allocations: 3.519 MB / 0.4919 GB, free: 14.55 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.131, allocations: 0 / 0.4919 GB, free: 14.55 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001182/0.1322, allocations: 0.5876 MB / 0.4924 GB, free: 13.94 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001346/0.1324, allocations: 124.6 kB / 0.4926 GB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.434e-05/0.1324, allocations: 4 kB / 0.4926 GB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000254/0.1327, allocations: 35.98 kB / 0.4926 GB, free: 13.76 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.037e-05/0.1328, allocations: 27.95 kB / 0.4926 GB, free: 13.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.921e-05/0.1328, allocations: 11.94 kB / 0.4926 GB, free: 13.72 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001636/0.133, allocations: 176.4 kB / 0.4928 GB, free: 13.55 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.133, allocations: 0 / 0.4928 GB, free: 13.55 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004623/0.1334, allocations: 107.8 kB / 0.4929 GB, free: 13.45 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.001385/0.1348, allocations: 1.131 MB / 0.494 GB, free: 12.28 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001029/0.1359, allocations: 0.5717 MB / 0.4946 GB, free: 11.68 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.574e-06/0.1359, allocations: 0 / 0.4946 GB, free: 11.68 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006212/0.1365, allocations: 449.2 kB / 0.495 GB, free: 11.22 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004347/0.137, allocations: 48.41 kB / 0.495 GB, free: 11.17 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004601/0.1416, allocations: 3.274 MB / 0.4982 GB, free: 7.781 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000285/0.1419, allocations: 0.7675 MB / 0.499 GB, free: 6.988 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001058/0.142, allocations: 22.28 kB / 0.499 GB, free: 6.969 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001093/0.1421, allocations: 71.42 kB / 0.4991 GB, free: 6.898 MB / 382.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1421, allocations: 0 / 0.4991 GB, free: 6.898 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01801/0.1601, allocations: 6.518 MB / 0.5054 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002334/0.1604, allocations: 239.1 kB / 0.5057 GB, free: 336 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.793/1.953, allocations: 10.89 kB / 0.5057 GB, free: 328 kB / 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