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.001289/0.001289, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001418/0.001418, allocations: 199.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.404/1.404, allocations: 227.4 MB / 247 MB, free: 10.39 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2133/0.2133, allocations: 46.12 MB / 344.4 MB, free: 11.39 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002445/0.002445, allocations: 79.86 kB / 480.9 MB, free: 4.465 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3081/0.3106, allocations: 62.44 MB / 0.5306 GB, free: 13.33 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.006456/0.3171, allocations: 2.918 MB / 0.5335 GB, free: 11.03 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001803/0.3189, allocations: 0.6931 MB / 0.5341 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001986/0.3192, allocations: 5.5 kB / 0.5341 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002296/0.3194, allocations: 56.94 kB / 0.5342 GB, free: 10.4 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002602/0.3197, allocations: 90.19 kB / 0.5343 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002865/0.32, allocations: 93.3 kB / 0.5344 GB, free: 10.24 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005996/0.3206, allocations: 415.1 kB / 0.5348 GB, free: 9.992 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003058/0.3209, allocations: 120.5 kB / 0.5349 GB, free: 9.926 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002312/0.3212, allocations: 154.5 kB / 0.535 GB, free: 9.836 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003157/0.3215, allocations: 169.3 kB / 0.5352 GB, free: 9.715 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.974e-05/0.3216, allocations: 33.72 kB / 0.5352 GB, free: 9.715 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.6e-05/0.3217, allocations: 35.03 kB / 0.5353 GB, free: 9.715 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001061/0.3218, allocations: 71.58 kB / 0.5353 GB, free: 9.652 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002604/0.3221, allocations: 169.2 kB / 0.5355 GB, free: 9.539 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006052/0.3227, allocations: 387.7 kB / 0.5359 GB, free: 9.258 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/0.3227, allocations: 1.094 kB / 0.5359 GB, free: 9.258 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.937e-06/0.3227, allocations: 3.938 kB / 0.5359 GB, free: 9.254 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.147e-05/0.3228, allocations: 3.938 kB / 0.5359 GB, free: 9.25 MB / 398.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.001534/0.3243, allocations: 0.6478 MB / 0.5365 GB, free: 8.691 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/0.3244, allocations: 14.17 kB / 0.5365 GB, free: 8.688 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001068/0.3245, allocations: 64.5 kB / 0.5366 GB, free: 8.625 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.823e-05/0.3246, allocations: 33.53 kB / 0.5366 GB, free: 8.609 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005628/0.3252, allocations: 273.2 kB / 0.5369 GB, free: 8.336 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.499e-05/0.3252, allocations: 20.91 kB / 0.5369 GB, free: 8.328 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.308e-05/0.3253, allocations: 26.25 kB / 0.5369 GB, free: 8.32 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009492/0.3263, allocations: 336.3 kB / 0.5372 GB, free: 8.098 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.526e-05/0.3263, allocations: 0 / 0.5372 GB, free: 8.098 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.659e-05/0.3263, allocations: 11.06 kB / 0.5372 GB, free: 8.09 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.679e-05/0.3264, allocations: 6.438 kB / 0.5372 GB, free: 8.09 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008527/0.3272, allocations: 238.9 kB / 0.5375 GB, free: 7.984 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003162/0.3304, allocations: 1.243 MB / 0.5387 GB, free: 6.961 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00126/0.3317, allocations: 489.5 kB / 0.5392 GB, free: 6.586 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004961/0.3322, allocations: 162 kB / 0.5393 GB, free: 6.508 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.855e-05/0.3322, allocations: 6.391 kB / 0.5393 GB, free: 6.504 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.897e-05/0.3323, allocations: 37.11 kB / 0.5394 GB, free: 6.461 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 2.234e-06/0.3323, allocations: 1.062 kB / 0.5394 GB, free: 6.461 MB / 398.1 MB Notification: Performance of matching and sorting (n=27): time 0.004835/0.3372, allocations: 1.01 MB / 0.5403 GB, free: 5.852 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.025e-05/0.3372, allocations: 58.06 kB / 0.5404 GB, free: 5.785 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003872/0.3376, allocations: 237 kB / 0.5406 GB, free: 5.617 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.068e-05/0.3377, allocations: 34.8 kB / 0.5407 GB, free: 5.578 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001709/0.3379, allocations: 169.5 kB / 0.5408 GB, free: 5.422 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000116/0.338, allocations: 97.97 kB / 0.5409 GB, free: 5.336 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001451/0.3382, allocations: 53.64 kB / 0.541 GB, free: 5.297 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002083/0.3384, allocations: 336.6 kB / 0.5413 GB, free: 4.965 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004016/0.3388, allocations: 97.39 kB / 0.5414 GB, free: 4.922 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004625/0.3393, allocations: 161.8 kB / 0.5415 GB, free: 4.809 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008237/0.3401, allocations: 241.5 kB / 0.5418 GB, free: 4.668 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.3401, allocations: 0 / 0.5418 GB, free: 4.668 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001923/0.3421, allocations: 494 kB / 0.5422 GB, free: 4.406 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.503e-05/0.3421, allocations: 9.672 kB / 0.5422 GB, free: 4.402 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.3421, allocations: 1.188 kB / 0.5422 GB, free: 4.402 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001563/0.3437, allocations: 239.8 kB / 0.5425 GB, free: 4.285 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002387/0.344, allocations: 32.83 kB / 0.5425 GB, free: 4.277 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006861/0.3508, allocations: 3.692 MB / 0.5461 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003644/0.3512, allocations: 32.64 kB / 0.5461 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.185e-05/0.3513, allocations: 10.91 kB / 0.5461 GB, free: 0.8672 MB / 398.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.0002394/0.3515, allocations: 150.1 kB / 0.5463 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001011/0.3516, allocations: 24.67 kB / 0.5463 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.807e-05/0.3517, allocations: 36.02 kB / 0.5463 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.3517, allocations: 3.875 kB / 0.5464 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.547e-05/0.3518, allocations: 6.719 kB / 0.5464 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.677e-06/0.3518, allocations: 3.984 kB / 0.5464 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002582/0.3544, allocations: 0.8914 MB / 0.5472 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/0.3544, allocations: 0 / 0.5472 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001418/0.3545, allocations: 23.94 kB / 0.5473 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001477/0.356, allocations: 229.5 kB / 0.5475 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.554e-05/0.3561, allocations: 4 kB / 0.5475 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00548/0.3616, allocations: 3.689 MB / 0.5511 GB, free: 11.66 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.3616, allocations: 0 / 0.5511 GB, free: 11.66 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00114/0.3627, allocations: 0.5378 MB / 0.5516 GB, free: 11.1 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001409/0.3629, allocations: 132.8 kB / 0.5517 GB, free: 10.95 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.21e-05/0.3629, allocations: 4 kB / 0.5517 GB, free: 10.95 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002529/0.3632, allocations: 27.98 kB / 0.5518 GB, free: 10.92 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.427e-05/0.3633, allocations: 31.89 kB / 0.5518 GB, free: 10.89 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.805e-05/0.3633, allocations: 4 kB / 0.5518 GB, free: 10.88 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001788/0.3635, allocations: 184.4 kB / 0.552 GB, free: 10.71 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3635, allocations: 0 / 0.552 GB, free: 10.71 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004356/0.3639, allocations: 103.9 kB / 0.5521 GB, free: 10.61 MB / 414.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.001431/0.3654, allocations: 1.072 MB / 0.5531 GB, free: 9.504 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001051/0.3664, allocations: 0.5712 MB / 0.5537 GB, free: 8.906 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.3665, allocations: 0 / 0.5537 GB, free: 8.906 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006628/0.3671, allocations: 433.3 kB / 0.5541 GB, free: 8.457 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003635/0.3675, allocations: 44.36 kB / 0.5541 GB, free: 8.414 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004804/0.3723, allocations: 3.044 MB / 0.5571 GB, free: 5.246 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004292/0.3728, allocations: 0.7678 MB / 0.5579 GB, free: 4.449 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 9.65e-05/0.3729, allocations: 22.28 kB / 0.5579 GB, free: 4.43 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001157/0.373, allocations: 79.41 kB / 0.558 GB, free: 4.352 MB / 414.1 MB Notification: Performance of SimCode: time 5.1e-07/0.373, allocations: 0 / 0.558 GB, free: 4.352 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03508/0.4081, allocations: 7.193 MB / 0.565 GB, free: 13.33 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.608/10.02, allocations: 11.19 kB / 0.565 GB, free: 13.32 MB / 430.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