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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001266/0.001266, allocations: 114 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001398/0.001398, allocations: 213.1 kB / 23.74 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.428/1.428, allocations: 230.5 MB / 257.4 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2218/0.2218, allocations: 46.92 MB / 360.8 MB, free: 4.188 MB / 286.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002312/0.002312, allocations: 76.11 kB / 0.4962 GB, free: 7.77 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3784/0.3807, allocations: 66.09 MB / 0.5607 GB, free: 4.297 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004975/0.3857, allocations: 2.944 MB / 0.5636 GB, free: 1.34 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001453/0.3872, allocations: 0.6895 MB / 0.5643 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001537/0.3873, allocations: 7.938 kB / 0.5643 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002131/0.3875, allocations: 47.5 kB / 0.5643 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002101/0.3877, allocations: 99.12 kB / 0.5644 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002158/0.3879, allocations: 95.86 kB / 0.5645 GB, free: 408 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005223/0.3885, allocations: 406.7 kB / 0.5649 GB, free: 16 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002458/0.3887, allocations: 103 kB / 0.565 GB, free: 15.89 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002005/0.3889, allocations: 155.5 kB / 0.5651 GB, free: 15.74 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003613/0.3893, allocations: 167.3 kB / 0.5653 GB, free: 15.58 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.444e-05/0.3893, allocations: 36 kB / 0.5653 GB, free: 15.54 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.791e-05/0.3894, allocations: 36 kB / 0.5654 GB, free: 15.51 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.336e-05/0.3895, allocations: 75.75 kB / 0.5654 GB, free: 15.43 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001909/0.3897, allocations: 167.2 kB / 0.5656 GB, free: 15.27 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005279/0.3902, allocations: 398.4 kB / 0.566 GB, free: 14.88 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.3902, allocations: 0 / 0.566 GB, free: 14.88 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.654e-06/0.3902, allocations: 0 / 0.566 GB, free: 14.88 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.469e-05/0.3902, allocations: 0 / 0.566 GB, free: 14.88 MB / 414.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.001139/0.3914, allocations: 0.5676 MB / 0.5665 GB, free: 14.28 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.325e-05/0.3914, allocations: 12.03 kB / 0.5666 GB, free: 14.27 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.216e-05/0.3915, allocations: 66.67 kB / 0.5666 GB, free: 14.2 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.323e-05/0.3916, allocations: 36.75 kB / 0.5667 GB, free: 14.16 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000425/0.392, allocations: 211.6 kB / 0.5669 GB, free: 13.93 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.665e-05/0.392, allocations: 21.03 kB / 0.5669 GB, free: 13.91 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.461e-05/0.3921, allocations: 24.38 kB / 0.5669 GB, free: 13.88 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000619/0.3927, allocations: 330 kB / 0.5672 GB, free: 13.55 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.559e-05/0.3927, allocations: 3.984 kB / 0.5672 GB, free: 13.54 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.128e-05/0.3927, allocations: 16 kB / 0.5672 GB, free: 13.53 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.242e-05/0.3927, allocations: 8 kB / 0.5672 GB, free: 13.52 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005174/0.3933, allocations: 238.5 kB / 0.5675 GB, free: 13.29 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002121/0.3954, allocations: 1.212 MB / 0.5686 GB, free: 12 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000748/0.3961, allocations: 298.8 kB / 0.5689 GB, free: 11.7 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003102/0.3964, allocations: 141.2 kB / 0.5691 GB, free: 11.56 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.637e-05/0.3965, allocations: 4.234 kB / 0.5691 GB, free: 11.55 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.373e-05/0.3965, allocations: 38.8 kB / 0.5691 GB, free: 11.51 MB / 414.1 MB Notification: Performance of pre-optimization done (n=27): time 1.633e-06/0.3965, allocations: 0 / 0.5691 GB, free: 11.51 MB / 414.1 MB Notification: Performance of matching and sorting (n=27): time 0.002861/0.3994, allocations: 0.8601 MB / 0.57 GB, free: 10.64 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.006e-05/0.3994, allocations: 55.41 kB / 0.57 GB, free: 10.57 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002864/0.3997, allocations: 237.1 kB / 0.5702 GB, free: 10.32 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.6e-05/0.3998, allocations: 33.7 kB / 0.5703 GB, free: 10.29 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001453/0.3999, allocations: 164.6 kB / 0.5704 GB, free: 10.12 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.889e-05/0.4, allocations: 103.2 kB / 0.5705 GB, free: 10.02 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.317e-05/0.4001, allocations: 53.64 kB / 0.5706 GB, free: 9.961 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002173/0.4003, allocations: 334.8 kB / 0.5709 GB, free: 9.625 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002402/0.4005, allocations: 103.9 kB / 0.571 GB, free: 9.523 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000284/0.4008, allocations: 152 kB / 0.5711 GB, free: 9.359 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000512/0.4013, allocations: 248.1 kB / 0.5714 GB, free: 9.102 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.4013, allocations: 0 / 0.5714 GB, free: 9.102 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001124/0.4025, allocations: 490.7 kB / 0.5718 GB, free: 8.609 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.317e-05/0.4025, allocations: 14.28 kB / 0.5718 GB, free: 8.598 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.104e-06/0.4025, allocations: 0 / 0.5718 GB, free: 8.598 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000981/0.4035, allocations: 241.5 kB / 0.5721 GB, free: 8.355 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001505/0.4036, allocations: 35.98 kB / 0.5721 GB, free: 8.32 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004598/0.4082, allocations: 3.478 MB / 0.5755 GB, free: 4.617 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000213/0.4084, allocations: 31.81 kB / 0.5755 GB, free: 4.586 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.093e-05/0.4085, allocations: 12 kB / 0.5756 GB, free: 4.574 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.0001956/0.4087, allocations: 145.1 kB / 0.5757 GB, free: 4.426 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.181e-05/0.4087, allocations: 27.92 kB / 0.5757 GB, free: 4.398 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.297e-05/0.4088, allocations: 38.95 kB / 0.5758 GB, free: 4.355 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.4088, allocations: 0 / 0.5758 GB, free: 4.355 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.335e-05/0.4088, allocations: 11.94 kB / 0.5758 GB, free: 4.344 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.4088, allocations: 0 / 0.5758 GB, free: 4.344 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001656/0.4105, allocations: 0.8553 MB / 0.5766 GB, free: 3.434 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-06/0.4105, allocations: 0 / 0.5766 GB, free: 3.434 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.394e-05/0.4106, allocations: 19.98 kB / 0.5766 GB, free: 3.414 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008758/0.4114, allocations: 233.5 kB / 0.5768 GB, free: 3.18 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.827e-05/0.4114, allocations: 8 kB / 0.5769 GB, free: 3.172 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004394/0.4158, allocations: 3.478 MB / 0.5802 GB, free: 15.46 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.4158, allocations: 0 / 0.5802 GB, free: 15.46 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001113/0.417, allocations: 0.529 MB / 0.5808 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001079/0.4171, allocations: 47.72 kB / 0.5808 GB, free: 14.86 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.603e-05/0.4171, allocations: 11.98 kB / 0.5808 GB, free: 14.85 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002316/0.4173, allocations: 23.98 kB / 0.5808 GB, free: 14.83 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.132e-05/0.4174, allocations: 27.94 kB / 0.5809 GB, free: 14.8 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.565e-05/0.4174, allocations: 8 kB / 0.5809 GB, free: 14.79 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001877/0.4176, allocations: 188.3 kB / 0.5811 GB, free: 14.61 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4176, allocations: 3.938 kB / 0.5811 GB, free: 14.61 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004368/0.4181, allocations: 104 kB / 0.5812 GB, free: 14.51 MB / 430.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.001443/0.4195, allocations: 1.061 MB / 0.5822 GB, free: 13.41 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001053/0.4205, allocations: 0.5482 MB / 0.5827 GB, free: 12.84 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.4205, allocations: 0 / 0.5827 GB, free: 12.84 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006356/0.4212, allocations: 425.4 kB / 0.5831 GB, free: 12.4 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003884/0.4216, allocations: 43.3 kB / 0.5832 GB, free: 12.36 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005169/0.4267, allocations: 3.033 MB / 0.5861 GB, free: 9.203 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004891/0.4272, allocations: 0.7678 MB / 0.5869 GB, free: 8.41 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001012/0.4273, allocations: 22.28 kB / 0.5869 GB, free: 8.391 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001198/0.4275, allocations: 75.41 kB / 0.587 GB, free: 8.316 MB / 430.1 MB Notification: Performance of SimCode: time 6.01e-07/0.4275, allocations: 4 kB / 0.587 GB, free: 8.312 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0449/0.4724, allocations: 7.499 MB / 0.5943 GB, free: 0.957 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.74/12.21, allocations: 7.688 kB / 0.5943 GB, free: 0.9531 MB / 430.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches_fmu --startTime=0 --stopTime=1 --stepSize=0.00019988 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.200644959928468]