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.001146/0.001147, allocations: 117.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001252/0.001252, allocations: 204.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.329/1.329, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2098/0.2098, allocations: 46.09 MB / 344.3 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001332/0.001332, allocations: 75.88 kB / 480.8 MB, free: 4.562 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2966/0.2979, allocations: 62.43 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004229/0.3022, allocations: 2.93 MB / 0.5334 GB, free: 11.11 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001156/0.3034, allocations: 0.6858 MB / 0.534 GB, free: 10.54 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000131/0.3035, allocations: 5.5 kB / 0.534 GB, free: 10.54 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001753/0.3037, allocations: 53.38 kB / 0.5341 GB, free: 10.49 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001632/0.3039, allocations: 93.08 kB / 0.5342 GB, free: 10.41 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001823/0.3041, allocations: 95.38 kB / 0.5343 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004252/0.3045, allocations: 408.5 kB / 0.5347 GB, free: 10.08 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000225/0.3048, allocations: 116 kB / 0.5348 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001744/0.305, allocations: 157.7 kB / 0.5349 GB, free: 9.926 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002053/0.3052, allocations: 166.4 kB / 0.5351 GB, free: 9.809 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.409e-05/0.3052, allocations: 33.22 kB / 0.5351 GB, free: 9.809 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.693e-05/0.3053, allocations: 34.34 kB / 0.5351 GB, free: 9.809 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.602e-05/0.3054, allocations: 79.98 kB / 0.5352 GB, free: 9.738 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001513/0.3055, allocations: 160.9 kB / 0.5354 GB, free: 9.633 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003826/0.3059, allocations: 393.2 kB / 0.5357 GB, free: 9.348 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.3059, allocations: 3.938 kB / 0.5357 GB, free: 9.344 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3059, allocations: 0 / 0.5357 GB, free: 9.344 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.432e-06/0.3059, allocations: 1.375 kB / 0.5357 GB, free: 9.344 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.001011/0.307, allocations: 0.6424 MB / 0.5364 GB, free: 8.789 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/0.307, allocations: 14.98 kB / 0.5364 GB, free: 8.785 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.685e-05/0.3071, allocations: 68.06 kB / 0.5365 GB, free: 8.719 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.587e-05/0.3072, allocations: 33.94 kB / 0.5365 GB, free: 8.703 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003932/0.3076, allocations: 273.3 kB / 0.5367 GB, free: 8.43 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.873e-05/0.3076, allocations: 20.19 kB / 0.5368 GB, free: 8.422 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.259e-05/0.3077, allocations: 26.47 kB / 0.5368 GB, free: 8.414 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006007/0.3083, allocations: 332.6 kB / 0.5371 GB, free: 8.195 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.315e-05/0.3083, allocations: 0 / 0.5371 GB, free: 8.195 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.075e-05/0.3083, allocations: 15.44 kB / 0.5371 GB, free: 8.184 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.008e-05/0.3083, allocations: 6.781 kB / 0.5371 GB, free: 8.184 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005145/0.3089, allocations: 241.4 kB / 0.5374 GB, free: 8.074 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001973/0.3108, allocations: 1.244 MB / 0.5386 GB, free: 7.051 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007498/0.3116, allocations: 484.5 kB / 0.539 GB, free: 6.684 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003019/0.3119, allocations: 169.4 kB / 0.5392 GB, free: 6.598 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.517e-05/0.312, allocations: 7.359 kB / 0.5392 GB, free: 6.594 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.764e-05/0.312, allocations: 32.73 kB / 0.5392 GB, free: 6.555 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 1.412e-06/0.312, allocations: 0 / 0.5392 GB, free: 6.555 MB / 398.1 MB Notification: Performance of matching and sorting (n=27): time 0.00284/0.3148, allocations: 1.015 MB / 0.5402 GB, free: 5.941 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.741e-05/0.3149, allocations: 54.34 kB / 0.5403 GB, free: 5.879 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002647/0.3152, allocations: 240.9 kB / 0.5405 GB, free: 5.707 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.766e-05/0.3152, allocations: 34.77 kB / 0.5405 GB, free: 5.668 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001125/0.3153, allocations: 169.5 kB / 0.5407 GB, free: 5.512 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.791e-05/0.3154, allocations: 98.25 kB / 0.5408 GB, free: 5.426 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.777e-05/0.3155, allocations: 52.89 kB / 0.5408 GB, free: 5.387 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001346/0.3156, allocations: 336.9 kB / 0.5412 GB, free: 5.055 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002293/0.3159, allocations: 96.61 kB / 0.5413 GB, free: 5.012 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002547/0.3161, allocations: 162.9 kB / 0.5414 GB, free: 4.898 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004534/0.3166, allocations: 240.6 kB / 0.5416 GB, free: 4.758 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.3166, allocations: 1.094 kB / 0.5416 GB, free: 4.758 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001097/0.3177, allocations: 498.1 kB / 0.5421 GB, free: 4.492 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.3177, allocations: 5.094 kB / 0.5421 GB, free: 4.492 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.3178, allocations: 5.219 kB / 0.5421 GB, free: 4.488 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009256/0.3187, allocations: 235.4 kB / 0.5424 GB, free: 4.375 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001483/0.3188, allocations: 37.39 kB / 0.5424 GB, free: 4.363 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004035/0.3229, allocations: 3.685 MB / 0.546 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002111/0.3231, allocations: 31.61 kB / 0.546 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.439e-05/0.3231, allocations: 11.59 kB / 0.546 GB, free: 0.9609 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.0001673/0.3233, allocations: 149.4 kB / 0.5462 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.776e-05/0.3234, allocations: 29.12 kB / 0.5462 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.145e-05/0.3234, allocations: 32.41 kB / 0.5462 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.928e-06/0.3235, allocations: 3.375 kB / 0.5462 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.312e-05/0.3235, allocations: 6.281 kB / 0.5462 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.3235, allocations: 7.922 kB / 0.5462 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001572/0.3251, allocations: 0.8927 MB / 0.5471 GB, free: 16 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.3251, allocations: 0 / 0.5471 GB, free: 16 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001004/0.3252, allocations: 23.98 kB / 0.5471 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000802/0.326, allocations: 233.4 kB / 0.5474 GB, free: 15.76 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.715e-05/0.326, allocations: 4 kB / 0.5474 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0039/0.3299, allocations: 3.681 MB / 0.551 GB, free: 11.79 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.3299, allocations: 3.984 kB / 0.551 GB, free: 11.79 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001036/0.331, allocations: 0.5418 MB / 0.5515 GB, free: 11.22 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001185/0.3311, allocations: 124.8 kB / 0.5516 GB, free: 11.08 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.186e-05/0.3312, allocations: 4 kB / 0.5516 GB, free: 11.08 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000227/0.3314, allocations: 27.98 kB / 0.5516 GB, free: 11.05 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.088e-05/0.3315, allocations: 35.89 kB / 0.5517 GB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.827e-05/0.3315, allocations: 4 kB / 0.5517 GB, free: 11.01 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001681/0.3317, allocations: 176.4 kB / 0.5519 GB, free: 10.84 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.503e-06/0.3317, allocations: 4 kB / 0.5519 GB, free: 10.84 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004374/0.3321, allocations: 107.8 kB / 0.552 GB, free: 10.73 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.00131/0.3334, allocations: 1.073 MB / 0.553 GB, free: 9.629 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009767/0.3344, allocations: 0.5634 MB / 0.5536 GB, free: 9.039 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3344, allocations: 0 / 0.5536 GB, free: 9.039 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005778/0.335, allocations: 437.3 kB / 0.554 GB, free: 8.586 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003791/0.3354, allocations: 36.42 kB / 0.554 GB, free: 8.551 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004396/0.3398, allocations: 3.056 MB / 0.557 GB, free: 5.371 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003407/0.3402, allocations: 0.7678 MB / 0.5577 GB, free: 4.578 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 8.907e-05/0.3403, allocations: 22.28 kB / 0.5578 GB, free: 4.559 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001107/0.3404, allocations: 79.41 kB / 0.5578 GB, free: 4.48 MB / 414.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3404, allocations: 0 / 0.5578 GB, free: 4.48 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.031/0.3714, allocations: 7.178 MB / 0.5648 GB, free: 13.48 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.041/9.413, allocations: 11.56 kB / 0.5649 GB, free: 13.47 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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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