Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.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.001212/0.001212, allocations: 109.1 kB / 21.22 MB, free: 0.6484 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.001651/0.001651, allocations: 210.1 kB / 24.52 MB, free: 3.941 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.353/1.353, allocations: 230.5 MB / 258.2 MB, free: 7.805 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.2178/0.2178, allocations: 46.95 MB / 361.6 MB, free: 3.945 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.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_MuxDemux",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_MuxDemux",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002108/0.002108, allocations: 79.88 kB / 0.4969 GB, free: 7.578 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3024/0.3045, allocations: 66.08 MB / 0.5614 GB, free: 4.074 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002698/0.3072, allocations: 1.538 MB / 0.5629 GB, free: 2.531 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002262/0.3074, allocations: 59.75 kB / 0.563 GB, free: 2.473 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.139e-05/0.3075, allocations: 0 / 0.563 GB, free: 2.473 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001318/0.3076, allocations: 27.78 kB / 0.563 GB, free: 2.445 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.562e-05/0.3076, allocations: 3.938 kB / 0.563 GB, free: 2.441 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001291/0.3078, allocations: 31.92 kB / 0.563 GB, free: 2.41 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001073/0.3079, allocations: 71.81 kB / 0.5631 GB, free: 2.34 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002214/0.3081, allocations: 94.73 kB / 0.5632 GB, free: 2.242 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.112e-05/0.3082, allocations: 35.86 kB / 0.5632 GB, free: 2.207 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.097e-05/0.3082, allocations: 47.83 kB / 0.5633 GB, free: 2.16 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.334e-05/0.3082, allocations: 8 kB / 0.5633 GB, free: 2.152 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.911e-05/0.3083, allocations: 8 kB / 0.5633 GB, free: 2.145 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.088e-05/0.3083, allocations: 63.83 kB / 0.5634 GB, free: 2.082 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.666e-05/0.3084, allocations: 51.73 kB / 0.5634 GB, free: 2.031 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001849/0.3086, allocations: 155.2 kB / 0.5636 GB, free: 1.879 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.3086, allocations: 0 / 0.5636 GB, free: 1.879 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.3086, allocations: 4 kB / 0.5636 GB, free: 1.875 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.929e-06/0.3086, allocations: 0 / 0.5636 GB, free: 1.875 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.0004824/0.3091, allocations: 374 kB / 0.5639 GB, free: 1.48 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.575e-05/0.3091, allocations: 12.03 kB / 0.5639 GB, free: 1.469 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.107e-05/0.3092, allocations: 8.562 kB / 0.5639 GB, free: 1.457 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.401e-05/0.3093, allocations: 71.17 kB / 0.564 GB, free: 1.379 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.3e-05/0.3093, allocations: 24.8 kB / 0.564 GB, free: 1.355 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002034/0.3095, allocations: 158.3 kB / 0.5642 GB, free: 1.176 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.922e-05/0.3095, allocations: 20.88 kB / 0.5642 GB, free: 1.156 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.703e-05/0.3096, allocations: 28.33 kB / 0.5642 GB, free: 1.129 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003781/0.3099, allocations: 224.2 kB / 0.5644 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.257e-06/0.31, allocations: 0 / 0.5644 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.854e-05/0.31, allocations: 8 kB / 0.5644 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.31, allocations: 7.938 kB / 0.5645 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002552/0.3102, allocations: 145.9 kB / 0.5646 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006655/0.3109, allocations: 495.1 kB / 0.5651 GB, free: 224 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001057/0.311, allocations: 54.48 kB / 0.5651 GB, free: 160 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.705e-05/0.3111, allocations: 29 kB / 0.5651 GB, free: 128 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.421e-05/0.3111, allocations: 4 kB / 0.5652 GB, free: 124 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.044e-05/0.3111, allocations: 38.55 kB / 0.5652 GB, free: 76 kB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.072e-06/0.3111, allocations: 0 / 0.5652 GB, free: 76 kB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005188/0.3116, allocations: 177.1 kB / 0.5654 GB, free: 15.89 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.397e-05/0.3117, allocations: 51.41 kB / 0.5654 GB, free: 15.83 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.049e-05/0.3118, allocations: 117.8 kB / 0.5655 GB, free: 15.71 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.497e-05/0.3118, allocations: 25.7 kB / 0.5655 GB, free: 15.68 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.67e-05/0.3119, allocations: 148.3 kB / 0.5657 GB, free: 15.52 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.604e-05/0.3119, allocations: 27.75 kB / 0.5657 GB, free: 15.5 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.848e-05/0.3119, allocations: 21.7 kB / 0.5657 GB, free: 15.47 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001293/0.3121, allocations: 314.8 kB / 0.566 GB, free: 15.15 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.029e-05/0.3121, allocations: 19.97 kB / 0.5661 GB, free: 15.13 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.235e-05/0.3122, allocations: 45.69 kB / 0.5661 GB, free: 15.08 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001201/0.3123, allocations: 61.58 kB / 0.5662 GB, free: 15.02 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.52e-07/0.3123, allocations: 0 / 0.5662 GB, free: 15.02 MB / 414.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001744/0.3125, allocations: 93.55 kB / 0.5662 GB, free: 14.92 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/0.3125, allocations: 4 kB / 0.5662 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.449e-06/0.3125, allocations: 0 / 0.5662 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.166e-05/0.3125, allocations: 8.031 kB / 0.5663 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.204e-05/0.3126, allocations: 15.98 kB / 0.5663 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.3126, allocations: 3.938 kB / 0.5663 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.523e-05/0.3126, allocations: 4 kB / 0.5663 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.614e-06/0.3127, allocations: 4 kB / 0.5663 GB, free: 14.88 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.0001066/0.3128, allocations: 137.8 kB / 0.5664 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.443e-05/0.3128, allocations: 4 kB / 0.5664 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.571e-05/0.3128, allocations: 8.375 kB / 0.5664 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.516e-06/0.3128, allocations: 4 kB / 0.5664 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.3128, allocations: 3.938 kB / 0.5664 GB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.3128, allocations: 7.984 kB / 0.5664 GB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005027/0.3133, allocations: 389.4 kB / 0.5668 GB, free: 14.28 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.3133, allocations: 0 / 0.5668 GB, free: 14.28 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.725e-05/0.3134, allocations: 19.92 kB / 0.5668 GB, free: 14.26 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.3134, allocations: 7.875 kB / 0.5668 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.945e-06/0.3134, allocations: 4 kB / 0.5668 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.3134, allocations: 0 / 0.5668 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.3134, allocations: 0 / 0.5668 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002096/0.3136, allocations: 180.6 kB / 0.567 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.35e-05/0.3136, allocations: 11.89 kB / 0.567 GB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.407e-05/0.3136, allocations: 4 kB / 0.567 GB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.714e-05/0.3137, allocations: 7.984 kB / 0.567 GB, free: 14.03 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.688e-05/0.3137, allocations: 0 / 0.567 GB, free: 14.03 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.931e-06/0.3137, allocations: 4 kB / 0.567 GB, free: 14.03 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.888e-05/0.3138, allocations: 91.2 kB / 0.5671 GB, free: 13.94 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3138, allocations: 0 / 0.5671 GB, free: 13.94 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000222/0.314, allocations: 20 kB / 0.5671 GB, free: 13.92 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.0005912/0.3146, allocations: 0.744 MB / 0.5679 GB, free: 13.15 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001681/0.3148, allocations: 51.95 kB / 0.5679 GB, free: 13.1 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.442e-06/0.3148, allocations: 0 / 0.5679 GB, free: 13.1 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 7.182e-05/0.3148, allocations: 27.98 kB / 0.5679 GB, free: 13.07 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002895/0.3151, allocations: 12.19 kB / 0.568 GB, free: 13.06 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001656/0.3168, allocations: 1.546 MB / 0.5695 GB, free: 11.43 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001319/0.3169, allocations: 122.9 kB / 0.5696 GB, free: 11.29 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.852e-05/0.317, allocations: 16.47 kB / 0.5696 GB, free: 11.27 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.263e-05/0.317, allocations: 51.42 kB / 0.5697 GB, free: 11.22 MB / 414.1 MB Notification: Performance of SimCode: time 2.7e-07/0.317, allocations: 0 / 0.5697 GB, free: 11.22 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02075/0.3378, allocations: 2.432 MB / 0.572 GB, free: 8.91 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.52/10.86, allocations: 4 kB / 0.572 GB, free: 8.906 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_MuxDemux_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_MuxDemux.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_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_trunk_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: 13.81272323790472]