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.001505/0.001505, allocations: 113.8 kB / 17.78 MB, free: 5.277 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.001754/0.001754, allocations: 179.9 kB / 18.71 MB, free: 4.363 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.322/1.322, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1955/0.1955, allocations: 44.18 MB / 336.8 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 63.89 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2973/0.2985, allocations: 60.83 MB / 0.5184 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.003265/0.3018, allocations: 2.91 MB / 0.5213 GB, free: 1.211 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008929/0.3027, allocations: 0.6442 MB / 0.5219 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001319/0.3029, allocations: 5.438 kB / 0.5219 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001605/0.3031, allocations: 57 kB / 0.5219 GB, free: 0.707 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001486/0.3032, allocations: 89.69 kB / 0.522 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001835/0.3034, allocations: 93.33 kB / 0.5221 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003686/0.3038, allocations: 407.4 kB / 0.5225 GB, free: 400 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002202/0.304, allocations: 123 kB / 0.5226 GB, free: 340 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001476/0.3042, allocations: 152 kB / 0.5228 GB, free: 268 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001962/0.3044, allocations: 161.4 kB / 0.5229 GB, free: 188 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.401e-05/0.3044, allocations: 38.06 kB / 0.523 GB, free: 184 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.388e-05/0.3045, allocations: 33.56 kB / 0.523 GB, free: 184 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.251e-05/0.3046, allocations: 71.56 kB / 0.5231 GB, free: 136 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001389/0.3047, allocations: 168 kB / 0.5232 GB, free: 36 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004824/0.3052, allocations: 396.6 kB / 0.5236 GB, free: 15.88 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.3052, allocations: 0 / 0.5236 GB, free: 15.88 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3052, allocations: 1.219 kB / 0.5236 GB, free: 15.88 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.109e-05/0.3052, allocations: 4 kB / 0.5236 GB, free: 15.88 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.001041/0.3063, allocations: 0.6386 MB / 0.5242 GB, free: 15.37 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.534e-05/0.3063, allocations: 9.844 kB / 0.5242 GB, free: 15.37 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.739e-05/0.3064, allocations: 61.45 kB / 0.5243 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.409e-05/0.3065, allocations: 38.52 kB / 0.5243 GB, free: 15.3 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003414/0.3068, allocations: 273.3 kB / 0.5246 GB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.2e-05/0.3068, allocations: 19.75 kB / 0.5246 GB, free: 15.03 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.898e-05/0.3069, allocations: 26.25 kB / 0.5246 GB, free: 15.02 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005921/0.3075, allocations: 340.2 kB / 0.525 GB, free: 14.85 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.302e-05/0.3075, allocations: 0 / 0.525 GB, free: 14.85 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.017e-05/0.3075, allocations: 11.97 kB / 0.525 GB, free: 14.84 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.226e-06/0.3076, allocations: 6.625 kB / 0.525 GB, free: 14.84 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005173/0.3081, allocations: 241.7 kB / 0.5252 GB, free: 14.77 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001994/0.3101, allocations: 1.254 MB / 0.5264 GB, free: 13.91 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007233/0.3108, allocations: 467 kB / 0.5269 GB, free: 13.59 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002943/0.3111, allocations: 163.2 kB / 0.527 GB, free: 13.53 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.408e-05/0.3112, allocations: 3.5 kB / 0.527 GB, free: 13.53 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.278e-05/0.3112, allocations: 40.77 kB / 0.5271 GB, free: 13.48 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 1.463e-06/0.3112, allocations: 1.375 kB / 0.5271 GB, free: 13.48 MB / 398.1 MB Notification: Performance of matching and sorting (n=27): time 0.002909/0.3141, allocations: 1.017 MB / 0.5281 GB, free: 12.9 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.272e-05/0.3141, allocations: 54.12 kB / 0.5281 GB, free: 12.84 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002484/0.3144, allocations: 244.4 kB / 0.5284 GB, free: 12.66 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.742e-05/0.3144, allocations: 30.98 kB / 0.5284 GB, free: 12.63 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.831e-05/0.3145, allocations: 173.1 kB / 0.5286 GB, free: 12.47 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.915e-05/0.3146, allocations: 99.12 kB / 0.5286 GB, free: 12.38 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.612e-05/0.3147, allocations: 45.72 kB / 0.5287 GB, free: 12.35 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001141/0.3148, allocations: 334.8 kB / 0.529 GB, free: 12.02 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002362/0.3151, allocations: 101.8 kB / 0.5291 GB, free: 11.97 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002588/0.3153, allocations: 150.1 kB / 0.5292 GB, free: 11.87 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004548/0.3158, allocations: 245.4 kB / 0.5295 GB, free: 11.73 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.3158, allocations: 1.562 kB / 0.5295 GB, free: 11.73 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001103/0.3169, allocations: 492.5 kB / 0.53 GB, free: 11.46 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/0.317, allocations: 5.625 kB / 0.53 GB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.942e-06/0.317, allocations: 5.156 kB / 0.53 GB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009607/0.3179, allocations: 239.7 kB / 0.5302 GB, free: 11.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001502/0.3181, allocations: 36.7 kB / 0.5302 GB, free: 11.33 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004081/0.3222, allocations: 3.69 MB / 0.5338 GB, free: 7.949 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000223/0.3224, allocations: 34.97 kB / 0.5339 GB, free: 7.926 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.786e-05/0.3224, allocations: 7.062 kB / 0.5339 GB, free: 7.926 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.0001483/0.3226, allocations: 150.2 kB / 0.534 GB, free: 7.781 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.808e-05/0.3227, allocations: 25.39 kB / 0.534 GB, free: 7.77 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.171e-05/0.3227, allocations: 40.23 kB / 0.5341 GB, free: 7.734 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.3227, allocations: 3.25 kB / 0.5341 GB, free: 7.734 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.546e-05/0.3228, allocations: 6.219 kB / 0.5341 GB, free: 7.73 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.3228, allocations: 0 / 0.5341 GB, free: 7.73 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001601/0.3244, allocations: 0.8883 MB / 0.535 GB, free: 7.062 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.3244, allocations: 0 / 0.535 GB, free: 7.062 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.545e-05/0.3245, allocations: 17.31 kB / 0.535 GB, free: 7.059 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008412/0.3253, allocations: 239.9 kB / 0.5352 GB, free: 6.941 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.813e-05/0.3254, allocations: 4 kB / 0.5352 GB, free: 6.938 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004082/0.3295, allocations: 3.696 MB / 0.5388 GB, free: 3.547 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.3295, allocations: 0 / 0.5388 GB, free: 3.547 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001102/0.3306, allocations: 0.533 MB / 0.5393 GB, free: 3.199 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001159/0.3307, allocations: 119.7 kB / 0.5394 GB, free: 3.074 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.739e-05/0.3308, allocations: 9.141 kB / 0.5395 GB, free: 3.066 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002384/0.331, allocations: 28.7 kB / 0.5395 GB, free: 3.055 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.352e-05/0.3311, allocations: 27.73 kB / 0.5395 GB, free: 3.039 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.819e-05/0.3311, allocations: 13.59 kB / 0.5395 GB, free: 3.031 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001772/0.3313, allocations: 178.1 kB / 0.5397 GB, free: 2.91 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3313, allocations: 0 / 0.5397 GB, free: 2.91 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004547/0.3318, allocations: 106 kB / 0.5398 GB, free: 2.891 MB / 398.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.001372/0.3331, allocations: 1.077 MB / 0.5408 GB, free: 2.012 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009817/0.3341, allocations: 0.5471 MB / 0.5414 GB, free: 1.625 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/0.3342, allocations: 3.984 kB / 0.5414 GB, free: 1.621 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005825/0.3347, allocations: 447.8 kB / 0.5418 GB, free: 1.27 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003851/0.3351, allocations: 48.36 kB / 0.5419 GB, free: 1.242 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004728/0.3399, allocations: 3.045 MB / 0.5448 GB, free: 15.01 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000319/0.3402, allocations: 0.7673 MB / 0.5456 GB, free: 14.27 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001026/0.3403, allocations: 24.08 kB / 0.5456 GB, free: 14.26 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001074/0.3404, allocations: 78.03 kB / 0.5457 GB, free: 14.2 MB / 414.1 MB Notification: Performance of SimCode: time 4.3e-07/0.3404, allocations: 0 / 0.5457 GB, free: 14.2 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02836/0.3688, allocations: 7.197 MB / 0.5527 GB, free: 7.883 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.137/9.506, allocations: 5.766 kB / 0.5527 GB, free: 7.879 MB / 414.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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_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.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_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches