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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001387/0.001387, allocations: 113.1 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001904/0.001904, allocations: 216.5 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.488/1.488, allocations: 230.6 MB / 257.5 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2318/0.2318, allocations: 44.92 MB / 358.8 MB, free: 6.293 MB / 286.1 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002063/0.002063, allocations: 63.91 kB / 0.4931 GB, free: 10.74 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3991/0.4011, allocations: 65.47 MB / 0.557 GB, free: 7.555 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004744/0.4059, allocations: 2.962 MB / 0.5599 GB, free: 4.855 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001189/0.4071, allocations: 0.6856 MB / 0.5606 GB, free: 4.164 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001556/0.4072, allocations: 11.94 kB / 0.5606 GB, free: 4.152 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001806/0.4074, allocations: 55.44 kB / 0.5606 GB, free: 4.098 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001631/0.4076, allocations: 91.17 kB / 0.5607 GB, free: 4.008 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001851/0.4078, allocations: 87.88 kB / 0.5608 GB, free: 3.922 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004501/0.4082, allocations: 414 kB / 0.5612 GB, free: 3.516 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002082/0.4084, allocations: 95.34 kB / 0.5613 GB, free: 3.422 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001879/0.4086, allocations: 155.5 kB / 0.5614 GB, free: 3.27 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002306/0.4088, allocations: 159.3 kB / 0.5616 GB, free: 3.113 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.431e-05/0.4089, allocations: 36 kB / 0.5616 GB, free: 3.078 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001/0.409, allocations: 35.94 kB / 0.5617 GB, free: 3.043 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.346e-05/0.4091, allocations: 75.75 kB / 0.5617 GB, free: 2.969 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000159/0.4092, allocations: 171.2 kB / 0.5619 GB, free: 2.801 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004189/0.4096, allocations: 392.4 kB / 0.5623 GB, free: 2.418 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.4096, allocations: 0 / 0.5623 GB, free: 2.418 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.4096, allocations: 0 / 0.5623 GB, free: 2.418 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.08e-05/0.4097, allocations: 0 / 0.5623 GB, free: 2.418 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.001032/0.4107, allocations: 0.5754 MB / 0.5628 GB, free: 1.812 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/0.4107, allocations: 11.98 kB / 0.5628 GB, free: 1.801 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.594e-05/0.4108, allocations: 70.72 kB / 0.5629 GB, free: 1.723 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.689e-05/0.4109, allocations: 36.75 kB / 0.5629 GB, free: 1.688 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000376/0.4112, allocations: 206.7 kB / 0.5631 GB, free: 1.457 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.966e-05/0.4113, allocations: 17.03 kB / 0.5632 GB, free: 1.441 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.213e-05/0.4113, allocations: 32.31 kB / 0.5632 GB, free: 1.41 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00061/0.4119, allocations: 330 kB / 0.5635 GB, free: 1.074 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.248e-05/0.4119, allocations: 0 / 0.5635 GB, free: 1.074 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.983e-05/0.412, allocations: 15.94 kB / 0.5635 GB, free: 1.059 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.157e-05/0.412, allocations: 4 kB / 0.5635 GB, free: 1.055 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005075/0.4125, allocations: 242.5 kB / 0.5638 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002054/0.4145, allocations: 1.215 MB / 0.5649 GB, free: 15.53 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006943/0.4152, allocations: 290.9 kB / 0.5652 GB, free: 15.23 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002984/0.4155, allocations: 140.4 kB / 0.5654 GB, free: 15.1 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.542e-05/0.4156, allocations: 4.234 kB / 0.5654 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.362e-05/0.4156, allocations: 38.78 kB / 0.5654 GB, free: 15.05 MB / 414.1 MB Notification: Performance of pre-optimization done (n=27): time 1.593e-06/0.4156, allocations: 0 / 0.5654 GB, free: 15.05 MB / 414.1 MB Notification: Performance of matching and sorting (n=27): time 0.002819/0.4184, allocations: 0.86 MB / 0.5662 GB, free: 14.18 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.07e-05/0.4185, allocations: 55.41 kB / 0.5663 GB, free: 14.11 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002574/0.4187, allocations: 237.1 kB / 0.5665 GB, free: 13.86 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.913e-05/0.4187, allocations: 33.7 kB / 0.5665 GB, free: 13.82 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001348/0.4189, allocations: 172.6 kB / 0.5667 GB, free: 13.65 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.843e-05/0.419, allocations: 95.16 kB / 0.5668 GB, free: 13.56 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.195e-05/0.419, allocations: 57.64 kB / 0.5669 GB, free: 13.5 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.4192, allocations: 338.8 kB / 0.5672 GB, free: 13.16 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000233/0.4194, allocations: 95.95 kB / 0.5673 GB, free: 13.06 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002701/0.4197, allocations: 156.8 kB / 0.5674 GB, free: 12.89 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004709/0.4202, allocations: 244.7 kB / 0.5677 GB, free: 12.64 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.4202, allocations: 0 / 0.5677 GB, free: 12.64 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001122/0.4213, allocations: 494.6 kB / 0.5681 GB, free: 12.14 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.029e-05/0.4213, allocations: 7.984 kB / 0.5681 GB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.4213, allocations: 0 / 0.5681 GB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009779/0.4223, allocations: 245.5 kB / 0.5684 GB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001672/0.4225, allocations: 31.92 kB / 0.5684 GB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004624/0.4271, allocations: 3.482 MB / 0.5718 GB, free: 8.152 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002092/0.4273, allocations: 35.77 kB / 0.5718 GB, free: 8.117 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.938e-05/0.4273, allocations: 8 kB / 0.5718 GB, free: 8.109 MB / 414.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.0001841/0.4275, allocations: 149.8 kB / 0.572 GB, free: 7.953 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.721e-05/0.4276, allocations: 23.86 kB / 0.572 GB, free: 7.93 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.086e-05/0.4277, allocations: 38.89 kB / 0.572 GB, free: 7.887 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.4277, allocations: 4 kB / 0.572 GB, free: 7.883 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.56e-05/0.4277, allocations: 7.938 kB / 0.5721 GB, free: 7.875 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.4277, allocations: 0 / 0.5721 GB, free: 7.875 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0016/0.4293, allocations: 0.8484 MB / 0.5729 GB, free: 6.973 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.141e-06/0.4293, allocations: 3.984 kB / 0.5729 GB, free: 6.969 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.05e-05/0.4294, allocations: 20 kB / 0.5729 GB, free: 6.949 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008254/0.4302, allocations: 241.4 kB / 0.5731 GB, free: 6.707 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.688e-05/0.4302, allocations: 4 kB / 0.5731 GB, free: 6.703 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004182/0.4344, allocations: 3.474 MB / 0.5765 GB, free: 3 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/0.4344, allocations: 4.062 kB / 0.5765 GB, free: 2.996 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001066/0.4355, allocations: 0.529 MB / 0.5771 GB, free: 2.441 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001081/0.4356, allocations: 51.72 kB / 0.5771 GB, free: 2.391 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.164e-05/0.4356, allocations: 4 kB / 0.5771 GB, free: 2.387 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002267/0.4358, allocations: 31.97 kB / 0.5771 GB, free: 2.355 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.444e-05/0.4359, allocations: 27.95 kB / 0.5772 GB, free: 2.328 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.497e-05/0.4359, allocations: 4 kB / 0.5772 GB, free: 2.324 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000174/0.4361, allocations: 180.4 kB / 0.5773 GB, free: 2.148 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4361, allocations: 3.938 kB / 0.5773 GB, free: 2.145 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004417/0.4366, allocations: 104 kB / 0.5774 GB, free: 2.043 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.001377/0.4379, allocations: 1.067 MB / 0.5785 GB, free: 0.9453 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001072/0.439, allocations: 0.5365 MB / 0.579 GB, free: 392 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.439, allocations: 4 kB / 0.579 GB, free: 388 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006345/0.4396, allocations: 425.5 kB / 0.5794 GB, free: 15.94 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003845/0.44, allocations: 56.58 kB / 0.5795 GB, free: 15.88 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004772/0.4448, allocations: 3.045 MB / 0.5824 GB, free: 12.71 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004553/0.4453, allocations: 0.7639 MB / 0.5832 GB, free: 11.93 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 9.281e-05/0.4453, allocations: 22.28 kB / 0.5832 GB, free: 11.91 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001173/0.4455, allocations: 75.42 kB / 0.5833 GB, free: 11.83 MB / 430.1 MB Notification: Performance of SimCode: time 3.1e-07/0.4455, allocations: 0 / 0.5833 GB, free: 11.83 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04337/0.4888, allocations: 7.496 MB / 0.5906 GB, free: 4.516 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.59/12.08, allocations: 0 / 0.5906 GB, free: 4.516 MB / 430.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches_fmu --startTime=0 --stopTime=1 --stepSize=0.00019988 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches.fmu > ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.315579474903643]