Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001839/0.001839, 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.002318/0.002318, allocations: 214.6 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.484/1.484, allocations: 230.6 MB / 257.5 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2241/0.2241, allocations: 46.93 MB / 360.9 MB, free: 4.27 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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_1_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002034/0.002034, allocations: 75.89 kB / 0.4962 GB, free: 7.918 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3172/0.3193, allocations: 66.03 MB / 0.5606 GB, free: 4.512 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004691/0.324, allocations: 2.954 MB / 0.5635 GB, free: 1.543 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001666/0.3256, allocations: 0.6895 MB / 0.5642 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003421/0.326, allocations: 4 kB / 0.5642 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002565/0.3262, allocations: 55.44 kB / 0.5643 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002791/0.3265, allocations: 87.19 kB / 0.5643 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002404/0.3267, allocations: 91.88 kB / 0.5644 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004667/0.3272, allocations: 410 kB / 0.5648 GB, free: 216 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002556/0.3275, allocations: 95.34 kB / 0.5649 GB, free: 120 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002025/0.3277, allocations: 155.5 kB / 0.5651 GB, free: 15.96 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002326/0.3279, allocations: 175.2 kB / 0.5652 GB, free: 15.79 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.366e-05/0.328, allocations: 36 kB / 0.5653 GB, free: 15.76 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.503e-05/0.328, allocations: 32 kB / 0.5653 GB, free: 15.73 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.232e-05/0.3281, allocations: 71.77 kB / 0.5654 GB, free: 15.66 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001726/0.3283, allocations: 171.2 kB / 0.5655 GB, free: 15.49 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004577/0.3287, allocations: 394.4 kB / 0.5659 GB, free: 15.1 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.3287, allocations: 0 / 0.5659 GB, free: 15.1 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.3287, allocations: 0 / 0.5659 GB, free: 15.1 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.296e-06/0.3287, allocations: 4 kB / 0.5659 GB, free: 15.1 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.001119/0.3299, allocations: 0.5715 MB / 0.5665 GB, free: 14.5 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/0.3299, allocations: 8.031 kB / 0.5665 GB, free: 14.49 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.955e-05/0.33, allocations: 62.72 kB / 0.5665 GB, free: 14.42 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.828e-05/0.3301, allocations: 40.73 kB / 0.5666 GB, free: 14.38 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004147/0.3305, allocations: 214.7 kB / 0.5668 GB, free: 14.14 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.683e-05/0.3305, allocations: 17.03 kB / 0.5668 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.037e-05/0.3305, allocations: 28.38 kB / 0.5668 GB, free: 14.1 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006117/0.3312, allocations: 330 kB / 0.5671 GB, free: 13.76 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.265e-05/0.3312, allocations: 0 / 0.5671 GB, free: 13.76 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.325e-05/0.3312, allocations: 16 kB / 0.5671 GB, free: 13.75 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.167e-06/0.3312, allocations: 4 kB / 0.5671 GB, free: 13.74 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005152/0.3317, allocations: 242.5 kB / 0.5674 GB, free: 13.5 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002112/0.3338, allocations: 1.212 MB / 0.5686 GB, free: 12.22 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006796/0.3345, allocations: 282.9 kB / 0.5688 GB, free: 11.93 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003033/0.3348, allocations: 149.2 kB / 0.569 GB, free: 11.79 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.205e-05/0.3348, allocations: 4.234 kB / 0.569 GB, free: 11.78 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.404e-05/0.3349, allocations: 34.73 kB / 0.569 GB, free: 11.74 MB / 414.1 MB Notification: Performance of pre-optimization done (n=27): time 1.843e-06/0.3349, allocations: 0 / 0.569 GB, free: 11.74 MB / 414.1 MB Notification: Performance of matching and sorting (n=27): time 0.002787/0.3377, allocations: 0.8601 MB / 0.5698 GB, free: 10.87 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.471e-05/0.3377, allocations: 55.41 kB / 0.5699 GB, free: 10.8 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002853/0.338, allocations: 241.1 kB / 0.5701 GB, free: 10.55 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.065e-05/0.338, allocations: 29.7 kB / 0.5702 GB, free: 10.52 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001455/0.3382, allocations: 176.6 kB / 0.5703 GB, free: 10.34 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.218e-05/0.3383, allocations: 95.16 kB / 0.5704 GB, free: 10.25 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.291e-05/0.3384, allocations: 53.64 kB / 0.5705 GB, free: 10.19 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001596/0.3385, allocations: 338.8 kB / 0.5708 GB, free: 9.848 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002351/0.3388, allocations: 95.95 kB / 0.5709 GB, free: 9.754 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000274/0.339, allocations: 156.8 kB / 0.571 GB, free: 9.586 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005457/0.3396, allocations: 244.7 kB / 0.5713 GB, free: 9.332 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.3396, allocations: 0 / 0.5713 GB, free: 9.332 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001093/0.3407, allocations: 498.6 kB / 0.5717 GB, free: 8.832 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.3407, allocations: 4 kB / 0.5717 GB, free: 8.828 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.3407, allocations: 4.062 kB / 0.5718 GB, free: 8.824 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009133/0.3416, allocations: 241.4 kB / 0.572 GB, free: 8.582 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001526/0.3418, allocations: 35.92 kB / 0.572 GB, free: 8.547 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00441/0.3462, allocations: 3.478 MB / 0.5754 GB, free: 4.844 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002938/0.3465, allocations: 35.77 kB / 0.5754 GB, free: 4.809 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.715e-05/0.3465, allocations: 8 kB / 0.5755 GB, free: 4.801 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.000214/0.3467, allocations: 151.3 kB / 0.5756 GB, free: 4.645 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.663e-05/0.3468, allocations: 23.86 kB / 0.5756 GB, free: 4.621 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.205e-05/0.3469, allocations: 34.95 kB / 0.5757 GB, free: 4.582 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.511e-06/0.3469, allocations: 4 kB / 0.5757 GB, free: 4.578 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.374e-05/0.3469, allocations: 7.938 kB / 0.5757 GB, free: 4.57 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.3469, allocations: 3.984 kB / 0.5757 GB, free: 4.566 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00174/0.3486, allocations: 0.8561 MB / 0.5765 GB, free: 3.656 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.3487, allocations: 0 / 0.5765 GB, free: 3.656 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.221e-05/0.3487, allocations: 15.94 kB / 0.5765 GB, free: 3.641 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008313/0.3496, allocations: 237.5 kB / 0.5767 GB, free: 3.402 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.66e-05/0.3496, allocations: 4 kB / 0.5768 GB, free: 3.398 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004103/0.3537, allocations: 3.486 MB / 0.5802 GB, free: 15.68 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.3537, allocations: 0 / 0.5802 GB, free: 15.68 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001073/0.3548, allocations: 0.5253 MB / 0.5807 GB, free: 15.13 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001068/0.3549, allocations: 51.72 kB / 0.5807 GB, free: 15.08 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.142e-05/0.3549, allocations: 4 kB / 0.5807 GB, free: 15.08 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002255/0.3551, allocations: 31.97 kB / 0.5808 GB, free: 15.05 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.31e-05/0.3552, allocations: 31.94 kB / 0.5808 GB, free: 15.02 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.704e-05/0.3552, allocations: 8 kB / 0.5808 GB, free: 15.01 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001664/0.3554, allocations: 176.4 kB / 0.581 GB, free: 14.84 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3554, allocations: 3.938 kB / 0.581 GB, free: 14.84 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004258/0.3558, allocations: 111.8 kB / 0.5811 GB, free: 14.73 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.001395/0.3572, allocations: 1.057 MB / 0.5821 GB, free: 13.64 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001023/0.3582, allocations: 0.5365 MB / 0.5826 GB, free: 13.07 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.509e-06/0.3582, allocations: 4 kB / 0.5826 GB, free: 13.07 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006238/0.3589, allocations: 429.5 kB / 0.583 GB, free: 12.62 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003777/0.3592, allocations: 44.73 kB / 0.5831 GB, free: 12.58 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005141/0.3644, allocations: 3.052 MB / 0.5861 GB, free: 9.402 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004204/0.3648, allocations: 0.7678 MB / 0.5868 GB, free: 8.609 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001007/0.3649, allocations: 18.3 kB / 0.5868 GB, free: 8.594 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001148/0.365, allocations: 75.41 kB / 0.5869 GB, free: 8.52 MB / 430.1 MB Notification: Performance of SimCode: time 6.51e-07/0.365, allocations: 0 / 0.5869 GB, free: 8.52 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04469/0.4097, allocations: 7.498 MB / 0.5942 GB, free: 1.203 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.38/11.79, allocations: 0 / 0.5942 GB, free: 1.203 MB / 430.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches_fmu --startTime=0 --stopTime=1 --stepSize=0.00019988 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches.fmu > ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_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_4.1.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: 14.862228615907952]