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.001704/0.001705, allocations: 118.4 kB / 17.78 MB, free: 5.258 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.001973/0.001973, allocations: 183.8 kB / 18.72 MB, free: 4.332 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.412/1.412, allocations: 222.9 MB / 242.4 MB, free: 15.09 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.2156/0.2156, allocations: 44.18 MB / 336.8 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001884/0.001884, allocations: 63.89 kB / 470 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3166/0.3185, allocations: 60.82 MB / 0.5184 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.003351/0.3219, allocations: 2.904 MB / 0.5212 GB, free: 1.238 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009242/0.3228, allocations: 0.654 MB / 0.5219 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001266/0.3229, allocations: 5.688 kB / 0.5219 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001545/0.3231, allocations: 53.45 kB / 0.5219 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001405/0.3233, allocations: 85.59 kB / 0.522 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001729/0.3234, allocations: 93.8 kB / 0.5221 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003662/0.3238, allocations: 413.9 kB / 0.5225 GB, free: 416 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002124/0.324, allocations: 119.7 kB / 0.5226 GB, free: 360 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001526/0.3242, allocations: 151.3 kB / 0.5228 GB, free: 288 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002111/0.3244, allocations: 165.5 kB / 0.5229 GB, free: 204 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.649e-05/0.3245, allocations: 33.44 kB / 0.523 GB, free: 204 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.29e-05/0.3245, allocations: 38.34 kB / 0.523 GB, free: 200 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.402e-05/0.3246, allocations: 66.98 kB / 0.5231 GB, free: 156 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001425/0.3248, allocations: 177 kB / 0.5232 GB, free: 48 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004999/0.3253, allocations: 388 kB / 0.5236 GB, free: 15.9 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.3253, allocations: 0 / 0.5236 GB, free: 15.9 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.065e-06/0.3253, allocations: 1.062 kB / 0.5236 GB, free: 15.9 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.194e-06/0.3253, allocations: 0 / 0.5236 GB, free: 15.9 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.00117/0.3265, allocations: 0.6423 MB / 0.5242 GB, free: 15.39 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.3265, allocations: 9.562 kB / 0.5242 GB, free: 15.39 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.118e-05/0.3266, allocations: 62.64 kB / 0.5243 GB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.471e-05/0.3267, allocations: 38.67 kB / 0.5243 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000433/0.3271, allocations: 276.6 kB / 0.5246 GB, free: 15.05 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.89e-05/0.3272, allocations: 20.5 kB / 0.5246 GB, free: 15.05 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.932e-05/0.3272, allocations: 25.72 kB / 0.5246 GB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006709/0.3279, allocations: 332.4 kB / 0.525 GB, free: 14.88 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.401e-05/0.3279, allocations: 4 kB / 0.525 GB, free: 14.87 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.32e-05/0.328, allocations: 14.17 kB / 0.525 GB, free: 14.86 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.257e-05/0.328, allocations: 7.625 kB / 0.525 GB, free: 14.86 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005387/0.3285, allocations: 241.8 kB / 0.5252 GB, free: 14.78 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002229/0.3308, allocations: 1.25 MB / 0.5264 GB, free: 13.93 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008341/0.3316, allocations: 467.8 kB / 0.5269 GB, free: 13.61 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003274/0.3319, allocations: 157.9 kB / 0.527 GB, free: 13.55 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.181e-05/0.332, allocations: 2.984 kB / 0.527 GB, free: 13.55 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.257e-05/0.332, allocations: 46.23 kB / 0.5271 GB, free: 13.5 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 1.743e-06/0.332, allocations: 0 / 0.5271 GB, free: 13.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=27): time 0.003062/0.3351, allocations: 1.02 MB / 0.5281 GB, free: 12.91 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.19e-05/0.3352, allocations: 54.19 kB / 0.5281 GB, free: 12.85 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002677/0.3354, allocations: 241.3 kB / 0.5284 GB, free: 12.68 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.101e-05/0.3355, allocations: 30.86 kB / 0.5284 GB, free: 12.64 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001194/0.3356, allocations: 169.5 kB / 0.5285 GB, free: 12.49 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.52e-05/0.3357, allocations: 98.48 kB / 0.5286 GB, free: 12.4 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.365e-05/0.3358, allocations: 52.48 kB / 0.5287 GB, free: 12.36 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001564/0.3359, allocations: 336.6 kB / 0.529 GB, free: 12.03 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000238/0.3362, allocations: 96.98 kB / 0.5291 GB, free: 11.99 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002711/0.3365, allocations: 147 kB / 0.5292 GB, free: 11.89 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005132/0.337, allocations: 241.5 kB / 0.5295 GB, free: 11.75 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.337, allocations: 7.938 kB / 0.5295 GB, free: 11.74 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001168/0.3382, allocations: 497 kB / 0.53 GB, free: 11.48 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.94e-05/0.3382, allocations: 12.98 kB / 0.53 GB, free: 11.47 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.3382, allocations: 1.219 kB / 0.53 GB, free: 11.47 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009785/0.3392, allocations: 240 kB / 0.5302 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001467/0.3394, allocations: 31.89 kB / 0.5302 GB, free: 11.35 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00446/0.3438, allocations: 3.69 MB / 0.5338 GB, free: 7.965 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002419/0.3441, allocations: 39.69 kB / 0.5339 GB, free: 7.938 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.727e-05/0.3441, allocations: 6.844 kB / 0.5339 GB, free: 7.938 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.000169/0.3443, allocations: 146.8 kB / 0.534 GB, free: 7.797 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.455e-05/0.3443, allocations: 28.89 kB / 0.534 GB, free: 7.781 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.769e-05/0.3444, allocations: 40.3 kB / 0.5341 GB, free: 7.746 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.776e-06/0.3444, allocations: 2 kB / 0.5341 GB, free: 7.746 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.192e-05/0.3445, allocations: 7.125 kB / 0.5341 GB, free: 7.742 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.3445, allocations: 3.984 kB / 0.5341 GB, free: 7.738 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001677/0.3461, allocations: 0.8851 MB / 0.535 GB, free: 7.074 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.3462, allocations: 0 / 0.535 GB, free: 7.074 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.338e-05/0.3462, allocations: 16.97 kB / 0.535 GB, free: 7.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009001/0.3472, allocations: 234.2 kB / 0.5352 GB, free: 6.957 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.981e-05/0.3472, allocations: 6.188 kB / 0.5352 GB, free: 6.953 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004273/0.3515, allocations: 3.69 MB / 0.5388 GB, free: 3.566 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-06/0.3515, allocations: 0 / 0.5388 GB, free: 3.566 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001146/0.3526, allocations: 0.5376 MB / 0.5393 GB, free: 3.215 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001295/0.3528, allocations: 123.8 kB / 0.5394 GB, free: 3.086 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.351e-05/0.3528, allocations: 5.062 kB / 0.5395 GB, free: 3.082 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002364/0.3531, allocations: 24.14 kB / 0.5395 GB, free: 3.074 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.552e-05/0.3531, allocations: 27.64 kB / 0.5395 GB, free: 3.059 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.029e-05/0.3532, allocations: 13.5 kB / 0.5395 GB, free: 3.051 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001768/0.3534, allocations: 186.3 kB / 0.5397 GB, free: 2.922 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3534, allocations: 0 / 0.5397 GB, free: 2.922 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004443/0.3538, allocations: 106.2 kB / 0.5398 GB, free: 2.902 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.001468/0.3553, allocations: 1.081 MB / 0.5409 GB, free: 2.02 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001103/0.3564, allocations: 0.5511 MB / 0.5414 GB, free: 1.629 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.3564, allocations: 0 / 0.5414 GB, free: 1.629 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006737/0.3571, allocations: 444 kB / 0.5418 GB, free: 1.281 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003924/0.3575, allocations: 48.16 kB / 0.5419 GB, free: 1.254 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004952/0.3625, allocations: 3.038 MB / 0.5448 GB, free: 15.03 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004008/0.3629, allocations: 0.7705 MB / 0.5456 GB, free: 14.29 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001106/0.363, allocations: 20.16 kB / 0.5456 GB, free: 14.28 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001166/0.3631, allocations: 78.62 kB / 0.5457 GB, free: 14.21 MB / 414.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3631, allocations: 4 kB / 0.5457 GB, free: 14.21 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0347/0.3978, allocations: 7.195 MB / 0.5527 GB, free: 7.914 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.903/10.3, allocations: 1.781 kB / 0.5527 GB, free: 7.914 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