Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux.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.00128/0.00128, allocations: 112.5 kB / 21.22 MB, free: 0.7305 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.001516/0.001516, allocations: 216.3 kB / 24.53 MB, free: 4.07 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.496/1.496, allocations: 230.6 MB / 258.3 MB, free: 8.004 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.2466/0.2466, allocations: 46.94 MB / 361.7 MB, free: 4.246 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.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_MuxDemux",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_MuxDemux",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002024/0.002024, allocations: 67.88 kB / 0.4969 GB, free: 7.887 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3413/0.3434, allocations: 66.04 MB / 0.5614 GB, free: 4.328 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.003172/0.3465, allocations: 1.569 MB / 0.5629 GB, free: 2.75 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002646/0.3468, allocations: 63.69 kB / 0.563 GB, free: 2.688 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.874e-05/0.3469, allocations: 4 kB / 0.563 GB, free: 2.684 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001552/0.347, allocations: 19.84 kB / 0.563 GB, free: 2.664 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.504e-05/0.347, allocations: 3.938 kB / 0.563 GB, free: 2.66 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001545/0.3472, allocations: 35.84 kB / 0.5631 GB, free: 2.625 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001353/0.3473, allocations: 71.81 kB / 0.5631 GB, free: 2.555 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002594/0.3476, allocations: 89.58 kB / 0.5632 GB, free: 2.461 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.394e-05/0.3476, allocations: 35.92 kB / 0.5633 GB, free: 2.426 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.228e-05/0.3477, allocations: 47.83 kB / 0.5633 GB, free: 2.379 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.438e-05/0.3478, allocations: 8 kB / 0.5633 GB, free: 2.371 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.907e-05/0.3478, allocations: 8 kB / 0.5633 GB, free: 2.363 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001035/0.3479, allocations: 67.81 kB / 0.5634 GB, free: 2.297 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.043e-05/0.348, allocations: 67.59 kB / 0.5634 GB, free: 2.23 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002231/0.3482, allocations: 151.3 kB / 0.5636 GB, free: 2.082 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.441e-06/0.3482, allocations: 0 / 0.5636 GB, free: 2.082 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.3482, allocations: 0 / 0.5636 GB, free: 2.082 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.3482, allocations: 0 / 0.5636 GB, free: 2.082 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0005575/0.3488, allocations: 374 kB / 0.5639 GB, free: 1.688 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.672e-05/0.3488, allocations: 12.03 kB / 0.564 GB, free: 1.676 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.616e-05/0.3488, allocations: 8.609 kB / 0.564 GB, free: 1.664 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.376e-05/0.3489, allocations: 71.17 kB / 0.564 GB, free: 1.586 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.013e-05/0.349, allocations: 24.8 kB / 0.5641 GB, free: 1.562 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002214/0.3492, allocations: 158.2 kB / 0.5642 GB, free: 1.383 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.92e-05/0.3492, allocations: 20.88 kB / 0.5642 GB, free: 1.363 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.041e-05/0.3493, allocations: 24.33 kB / 0.5643 GB, free: 1.34 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003998/0.3497, allocations: 224.2 kB / 0.5645 GB, free: 1.113 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.3497, allocations: 4 kB / 0.5645 GB, free: 1.109 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.931e-05/0.3497, allocations: 8 kB / 0.5645 GB, free: 1.102 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.497e-06/0.3497, allocations: 8 kB / 0.5645 GB, free: 1.094 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002734/0.35, allocations: 141.8 kB / 0.5646 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007852/0.3508, allocations: 0.5147 MB / 0.5651 GB, free: 408 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001106/0.3509, allocations: 54.48 kB / 0.5652 GB, free: 344 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.384e-05/0.3509, allocations: 32.84 kB / 0.5652 GB, free: 308 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.27e-05/0.351, allocations: 0 / 0.5652 GB, free: 308 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.974e-05/0.351, allocations: 38.56 kB / 0.5652 GB, free: 260 kB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 9.62e-07/0.351, allocations: 4 kB / 0.5652 GB, free: 256 kB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.000546/0.3515, allocations: 173.3 kB / 0.5654 GB, free: 76 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.083e-05/0.3516, allocations: 55.34 kB / 0.5655 GB, free: 8 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001114/0.3517, allocations: 118.4 kB / 0.5656 GB, free: 15.88 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.07e-05/0.3517, allocations: 29.7 kB / 0.5656 GB, free: 15.84 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.752e-05/0.3518, allocations: 144.3 kB / 0.5657 GB, free: 15.7 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.977e-05/0.3519, allocations: 31.75 kB / 0.5658 GB, free: 15.66 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.261e-05/0.3519, allocations: 21.7 kB / 0.5658 GB, free: 15.64 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.3521, allocations: 318.8 kB / 0.5661 GB, free: 15.32 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.211e-05/0.3521, allocations: 15.98 kB / 0.5661 GB, free: 15.3 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.742e-05/0.3522, allocations: 33.69 kB / 0.5661 GB, free: 15.26 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001463/0.3524, allocations: 65.58 kB / 0.5662 GB, free: 15.19 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.021e-06/0.3524, allocations: 0 / 0.5662 GB, free: 15.19 MB / 414.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002082/0.3526, allocations: 89.61 kB / 0.5663 GB, free: 15.1 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.3526, allocations: 4 kB / 0.5663 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.3526, allocations: 4 kB / 0.5663 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.317e-05/0.3526, allocations: 0 / 0.5663 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001096/0.3527, allocations: 19.92 kB / 0.5663 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.514e-06/0.3527, allocations: 7.969 kB / 0.5663 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.923e-05/0.3528, allocations: 4 kB / 0.5663 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.846e-06/0.3528, allocations: 4 kB / 0.5663 GB, free: 15.05 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001228/0.3529, allocations: 137.8 kB / 0.5665 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.051e-05/0.3529, allocations: 8 kB / 0.5665 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.455e-05/0.3529, allocations: 8.359 kB / 0.5665 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.3529, allocations: 4 kB / 0.5665 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.353, allocations: 3.938 kB / 0.5665 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.353, allocations: 7.984 kB / 0.5665 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005781/0.3535, allocations: 397.3 kB / 0.5669 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.3535, allocations: 0 / 0.5669 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.203e-05/0.3536, allocations: 19.92 kB / 0.5669 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.3536, allocations: 3.938 kB / 0.5669 GB, free: 14.42 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.162e-05/0.3536, allocations: 4.062 kB / 0.5669 GB, free: 14.42 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.3536, allocations: 4 kB / 0.5669 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.3536, allocations: 0 / 0.5669 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002409/0.3539, allocations: 183.5 kB / 0.5671 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.3e-05/0.3539, allocations: 11.83 kB / 0.5671 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.632e-05/0.3539, allocations: 8 kB / 0.5671 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.797e-05/0.354, allocations: 4 kB / 0.5671 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.8e-05/0.354, allocations: 3.984 kB / 0.5671 GB, free: 14.19 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.837e-06/0.354, allocations: 0 / 0.5671 GB, free: 14.19 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.148e-05/0.3541, allocations: 95.27 kB / 0.5672 GB, free: 14.1 MB / 414.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3541, allocations: 0 / 0.5672 GB, free: 14.1 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002562/0.3543, allocations: 16 kB / 0.5672 GB, free: 14.08 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000694/0.355, allocations: 0.7397 MB / 0.5679 GB, free: 13.32 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001984/0.3552, allocations: 52.91 kB / 0.568 GB, free: 13.27 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3552, allocations: 0 / 0.568 GB, free: 13.27 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 8.091e-05/0.3553, allocations: 27.97 kB / 0.568 GB, free: 13.24 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003266/0.3556, allocations: 12.16 kB / 0.568 GB, free: 13.23 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001882/0.3575, allocations: 1.549 MB / 0.5695 GB, free: 11.59 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003988/0.3579, allocations: 0.7314 MB / 0.5703 GB, free: 10.83 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.985e-05/0.3579, allocations: 12.42 kB / 0.5703 GB, free: 10.82 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.964e-05/0.358, allocations: 51.42 kB / 0.5703 GB, free: 10.77 MB / 414.1 MB Notification: Performance of SimCode: time 5.41e-07/0.358, allocations: 0 / 0.5703 GB, free: 10.77 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02199/0.38, allocations: 2.355 MB / 0.5726 GB, free: 8.562 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/11.84, allocations: 8.062 kB / 0.5726 GB, free: 8.555 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Blocks_MuxDemux_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Blocks_MuxDemux.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/MuxDemux/MuxDemux.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux.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.095920016989112]