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.001344/0.001344, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001621/0.001621, allocations: 209 kB / 23.73 MB, free: 4.387 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.541/1.541, allocations: 230.6 MB / 257.5 MB, free: 7.785 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.2236/0.2236, allocations: 44.94 MB / 358.8 MB, free: 6.062 MB / 286.1 MB " [Timeout remaining time 180] 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.002121/0.002121, allocations: 67.91 kB / 0.493 GB, free: 10.55 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3531/0.3553, allocations: 65.47 MB / 0.557 GB, free: 7.348 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004268/0.3595, allocations: 2.722 MB / 0.5596 GB, free: 4.816 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001241/0.3608, allocations: 0.6545 MB / 0.5603 GB, free: 4.156 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001385/0.3609, allocations: 11.94 kB / 0.5603 GB, free: 4.145 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001755/0.3611, allocations: 51.5 kB / 0.5603 GB, free: 4.094 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001699/0.3612, allocations: 95.06 kB / 0.5604 GB, free: 4 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001919/0.3614, allocations: 87.88 kB / 0.5605 GB, free: 3.914 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004412/0.3619, allocations: 406.1 kB / 0.5609 GB, free: 3.516 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002106/0.3621, allocations: 103.2 kB / 0.561 GB, free: 3.414 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001829/0.3623, allocations: 143.6 kB / 0.5611 GB, free: 3.273 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002136/0.3625, allocations: 143.3 kB / 0.5613 GB, free: 3.133 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.65e-05/0.3625, allocations: 36 kB / 0.5613 GB, free: 3.098 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.091e-05/0.3626, allocations: 32 kB / 0.5613 GB, free: 3.066 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.779e-05/0.3627, allocations: 71.77 kB / 0.5614 GB, free: 2.996 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000148/0.3628, allocations: 151.3 kB / 0.5615 GB, free: 2.848 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004283/0.3632, allocations: 394.4 kB / 0.5619 GB, free: 2.461 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.3633, allocations: 0 / 0.5619 GB, free: 2.461 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3633, allocations: 0 / 0.5619 GB, free: 2.461 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.203e-06/0.3633, allocations: 4 kB / 0.5619 GB, free: 2.457 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.001031/0.3643, allocations: 0.5715 MB / 0.5625 GB, free: 1.855 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.981e-05/0.3643, allocations: 15.98 kB / 0.5625 GB, free: 1.84 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.115e-05/0.3644, allocations: 58.73 kB / 0.5625 GB, free: 1.773 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.895e-05/0.3645, allocations: 36.75 kB / 0.5626 GB, free: 1.738 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004137/0.3649, allocations: 210.7 kB / 0.5628 GB, free: 1.504 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.745e-05/0.3649, allocations: 21.03 kB / 0.5628 GB, free: 1.484 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.584e-05/0.365, allocations: 28.38 kB / 0.5628 GB, free: 1.457 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006924/0.3657, allocations: 436.9 kB / 0.5632 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.373e-05/0.3657, allocations: 0 / 0.5632 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.27e-05/0.3657, allocations: 12 kB / 0.5632 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.3657, allocations: 4 kB / 0.5633 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005332/0.3663, allocations: 242.4 kB / 0.5635 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002103/0.3684, allocations: 1.141 MB / 0.5646 GB, free: 15.52 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007026/0.3691, allocations: 288.4 kB / 0.5649 GB, free: 15.23 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003098/0.3694, allocations: 157.2 kB / 0.565 GB, free: 15.08 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.322e-05/0.3694, allocations: 12.16 kB / 0.565 GB, free: 15.07 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.393e-05/0.3694, allocations: 34.8 kB / 0.5651 GB, free: 15.02 MB / 414.1 MB Notification: Performance of pre-optimization done (n=27): time 1.412e-06/0.3694, allocations: 0 / 0.5651 GB, free: 15.02 MB / 414.1 MB Notification: Performance of matching and sorting (n=27): time 0.002931/0.3724, allocations: 0.8523 MB / 0.5659 GB, free: 14.16 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.986e-05/0.3724, allocations: 59.34 kB / 0.566 GB, free: 14.09 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002743/0.3727, allocations: 249 kB / 0.5662 GB, free: 13.83 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.24e-05/0.3727, allocations: 33.7 kB / 0.5662 GB, free: 13.79 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001206/0.3728, allocations: 168.6 kB / 0.5664 GB, free: 13.62 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.738e-05/0.3729, allocations: 95.2 kB / 0.5665 GB, free: 13.53 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.63e-05/0.373, allocations: 57.66 kB / 0.5665 GB, free: 13.47 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.3732, allocations: 330.8 kB / 0.5668 GB, free: 13.14 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002417/0.3734, allocations: 95.95 kB / 0.5669 GB, free: 13.04 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002785/0.3737, allocations: 156.8 kB / 0.5671 GB, free: 12.88 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004928/0.3742, allocations: 248.7 kB / 0.5673 GB, free: 12.62 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.3742, allocations: 0 / 0.5673 GB, free: 12.62 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001165/0.3753, allocations: 490.7 kB / 0.5678 GB, free: 12.12 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/0.3754, allocations: 4.062 kB / 0.5678 GB, free: 12.12 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.511e-06/0.3754, allocations: 4 kB / 0.5678 GB, free: 12.12 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009537/0.3763, allocations: 237.5 kB / 0.568 GB, free: 11.88 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001474/0.3765, allocations: 27.98 kB / 0.5681 GB, free: 11.85 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004439/0.3809, allocations: 3.458 MB / 0.5714 GB, free: 8.168 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002233/0.3811, allocations: 31.78 kB / 0.5715 GB, free: 8.137 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.123e-05/0.3811, allocations: 12 kB / 0.5715 GB, free: 8.125 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.0001696/0.3813, allocations: 137.8 kB / 0.5716 GB, free: 7.98 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.898e-05/0.3814, allocations: 27.81 kB / 0.5716 GB, free: 7.953 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.916e-05/0.3814, allocations: 35.03 kB / 0.5717 GB, free: 7.914 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.022e-06/0.3814, allocations: 7.984 kB / 0.5717 GB, free: 7.906 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.396e-05/0.3815, allocations: 11.94 kB / 0.5717 GB, free: 7.895 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.3815, allocations: 3.984 kB / 0.5717 GB, free: 7.891 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001656/0.3831, allocations: 0.8094 MB / 0.5725 GB, free: 7.027 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.876e-06/0.3831, allocations: 0 / 0.5725 GB, free: 7.027 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.292e-05/0.3832, allocations: 19.94 kB / 0.5725 GB, free: 7.008 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008875/0.3841, allocations: 237.9 kB / 0.5727 GB, free: 6.77 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.901e-05/0.3841, allocations: 4 kB / 0.5727 GB, free: 6.766 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004374/0.3885, allocations: 3.462 MB / 0.5761 GB, free: 3.074 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.3885, allocations: 0 / 0.5761 GB, free: 3.074 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001178/0.3897, allocations: 0.5251 MB / 0.5766 GB, free: 2.523 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001205/0.3898, allocations: 51.72 kB / 0.5767 GB, free: 2.473 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.178e-05/0.3898, allocations: 4 kB / 0.5767 GB, free: 2.469 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002349/0.3901, allocations: 23.98 kB / 0.5767 GB, free: 2.445 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.42e-05/0.3901, allocations: 27.94 kB / 0.5767 GB, free: 2.418 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.712e-05/0.3902, allocations: 12 kB / 0.5767 GB, free: 2.406 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001835/0.3903, allocations: 180.4 kB / 0.5769 GB, free: 2.23 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3903, allocations: 0 / 0.5769 GB, free: 2.23 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004577/0.3908, allocations: 107.9 kB / 0.577 GB, free: 2.125 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.001475/0.3923, allocations: 1.065 MB / 0.5781 GB, free: 1.027 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001106/0.3934, allocations: 0.54 MB / 0.5786 GB, free: 472 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.3934, allocations: 0 / 0.5786 GB, free: 472 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006779/0.3941, allocations: 425.7 kB / 0.579 GB, free: 20 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004462/0.3945, allocations: 52.86 kB / 0.579 GB, free: 15.97 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004935/0.3994, allocations: 3.041 MB / 0.582 GB, free: 12.81 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001886/0.3996, allocations: 155.2 kB / 0.5822 GB, free: 12.64 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001416/0.3998, allocations: 22.3 kB / 0.5822 GB, free: 12.62 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001824/0.4, allocations: 75.41 kB / 0.5822 GB, free: 12.54 MB / 430.1 MB Notification: Performance of SimCode: time 1.002e-06/0.4, allocations: 0 / 0.5822 GB, free: 12.54 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0468/0.4468, allocations: 8.233 MB / 0.5903 GB, free: 4.527 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.71/12.16, allocations: 3.984 kB / 0.5903 GB, free: 4.523 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.264498875942081]